Package org.codelibs.fess.theme
Enum Class StaticThemeInstaller.InstallException.Code
java.lang.Object
java.lang.Enum<StaticThemeInstaller.InstallException.Code>
org.codelibs.fess.theme.StaticThemeInstaller.InstallException.Code
- All Implemented Interfaces:
Serializable,Comparable<StaticThemeInstaller.InstallException.Code>,Constable
- Enclosing class:
StaticThemeInstaller.InstallException
public static enum StaticThemeInstaller.InstallException.Code
extends Enum<StaticThemeInstaller.InstallException.Code>
Structured error codes for callers that need to dispatch on the cause.
-
Nested Class Summary
Nested classes/interfaces inherited from class java.lang.Enum
Enum.EnumDesc<E extends Enum<E>> -
Enum Constant Summary
Enum ConstantsEnum ConstantDescriptionRefused because the theme is the currently active default.Number of ZIP entries exceeded the configured limit.ZIP extraction failed (e.g.Theme name failed regex validation.theme.ymlmissing or failed validation.Atomic directory rename failed during promotion or rollback.Theme directory not found under the themes root.Fallback for failures that do not fit any other category.Per-entry compression ratio exceeded the configured limit.Cumulative extracted size exceeded the configured limit.Cumulative uncompressed/compressed ratio exceeded the configured limit. -
Method Summary
Modifier and TypeMethodDescriptionReturns the enum constant of this class with the specified name.values()Returns an array containing the constants of this enum class, in the order they are declared.
-
Enum Constant Details
-
INVALID_NAME
Theme name failed regex validation. -
ACTIVE_DEFAULT
Refused because the theme is the currently active default. -
NOT_FOUND
Theme directory not found under the themes root. -
EXTRACT_FAILED
ZIP extraction failed (e.g. ZipSlip, denied segment). -
MOVE_FAILED
Atomic directory rename failed during promotion or rollback. -
MANIFEST_INVALID
theme.ymlmissing or failed validation. -
SIZE_LIMIT
Cumulative extracted size exceeded the configured limit. -
ENTRY_LIMIT
Number of ZIP entries exceeded the configured limit. -
RATIO_LIMIT
Per-entry compression ratio exceeded the configured limit. -
ZIP_BOMB_RATIO
Cumulative uncompressed/compressed ratio exceeded the configured limit. -
OTHER
Fallback for failures that do not fit any other category.
-
-
Method Details
-
values
Returns an array containing the constants of this enum class, in the order they are declared.- Returns:
- an array containing the constants of this enum class, in the order they are declared
-
valueOf
Returns the enum constant of this class with the specified name. The string must match exactly an identifier used to declare an enum constant in this class. (Extraneous whitespace characters are not permitted.)- Parameters:
name- the name of the enum constant to be returned.- Returns:
- the enum constant with the specified name
- Throws:
IllegalArgumentException- if this enum class has no constant with the specified nameNullPointerException- if the argument is null
-