Class ThemeManifestException

All Implemented Interfaces:
Serializable

public class ThemeManifestException extends RuntimeException
Thrown when theme.yml fails parsing or validation.

Each instance carries a stable structured code so that callers (notably the admin theme action) can dispatch to a localized message instead of surfacing the raw English diagnostic to end users.

See Also:
  • Constructor Details

    • ThemeManifestException

      public ThemeManifestException(String message)
      Constructs an exception with the supplied diagnostic message and OTHER as the structured code.
      Parameters:
      message - human-readable description of the failure
    • ThemeManifestException

      public ThemeManifestException(String message, Throwable cause)
      Constructs an exception with the supplied message and underlying cause, defaulting the structured code to OTHER.
      Parameters:
      message - human-readable description of the failure
      cause - original throwable that triggered the failure
    • ThemeManifestException

      public ThemeManifestException(ThemeManifestException.Code code, String message)
      Constructs an exception with the supplied structured code and message.
      Parameters:
      code - structured error code (non-null)
      message - human-readable description of the failure
    • ThemeManifestException

      public ThemeManifestException(ThemeManifestException.Code code, String message, Throwable cause)
      Constructs an exception with the supplied structured code, message, and cause.
      Parameters:
      code - structured error code (non-null)
      message - human-readable description of the failure
      cause - original throwable that triggered the failure
  • Method Details

    • code

      Returns the structured error code associated with this exception.
      Returns:
      the structured error code (never null)