Package org.codelibs.fess.theme
Class ThemeManifestException
java.lang.Object
java.lang.Throwable
java.lang.Exception
java.lang.RuntimeException
org.codelibs.fess.theme.ThemeManifestException
- All Implemented Interfaces:
Serializable
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:
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic enumStructured error codes for theme.yml failures. -
Constructor Summary
ConstructorsConstructorDescriptionThemeManifestException(String message) Constructs an exception with the supplied diagnostic message andOTHERas the structured code.ThemeManifestException(String message, Throwable cause) Constructs an exception with the supplied message and underlying cause, defaulting the structured code toOTHER.ThemeManifestException(ThemeManifestException.Code code, String message) Constructs an exception with the supplied structured code and message.ThemeManifestException(ThemeManifestException.Code code, String message, Throwable cause) Constructs an exception with the supplied structured code, message, and cause. -
Method Summary
Modifier and TypeMethodDescriptioncode()Returns the structured error code associated with this exception.Methods inherited from class java.lang.Throwable
addSuppressed, fillInStackTrace, getCause, getLocalizedMessage, getMessage, getStackTrace, getSuppressed, initCause, printStackTrace, printStackTrace, printStackTrace, setStackTrace, toString
-
Constructor Details
-
ThemeManifestException
Constructs an exception with the supplied diagnostic message andOTHERas the structured code.- Parameters:
message- human-readable description of the failure
-
ThemeManifestException
Constructs an exception with the supplied message and underlying cause, defaulting the structured code toOTHER.- Parameters:
message- human-readable description of the failurecause- original throwable that triggered the failure
-
ThemeManifestException
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
Constructs an exception with the supplied structured code, message, and cause.- Parameters:
code- structured error code (non-null)message- human-readable description of the failurecause- 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)
-