Package org.codelibs.fess.theme
Class StaticThemeInstaller.InstallException
java.lang.Object
java.lang.Throwable
java.lang.Exception
java.lang.RuntimeException
org.codelibs.fess.theme.StaticThemeInstaller.InstallException
- All Implemented Interfaces:
Serializable
- Enclosing class:
StaticThemeInstaller
Raised on any failure during ZIP validation or extraction.
- See Also:
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic enumStructured error codes for callers that need to dispatch on the cause. -
Constructor Summary
ConstructorsConstructorDescriptionInstallException(String msg) Constructs an exception with the defaultOTHERcode.InstallException(String msg, Throwable cause) Constructs an exception with the defaultOTHERcode and a cause.Constructs an exception with the supplied structured code.InstallException(StaticThemeInstaller.InstallException.Code code, String msg, Throwable cause) Constructs an exception with the supplied structured code and a 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
-
InstallException
Constructs an exception with the defaultOTHERcode.- Parameters:
msg- diagnostic message
-
InstallException
Constructs an exception with the defaultOTHERcode and a cause.- Parameters:
msg- diagnostic messagecause- underlying throwable
-
InstallException
Constructs an exception with the supplied structured code.- Parameters:
code- structured error codemsg- diagnostic message
-
InstallException
public InstallException(StaticThemeInstaller.InstallException.Code code, String msg, Throwable cause) Constructs an exception with the supplied structured code and a cause.- Parameters:
code- structured error codemsg- diagnostic messagecause- underlying throwable
-
-
Method Details
-
code
Returns the structured error code associated with this exception.- Returns:
- the structured error code
-