Package org.codelibs.fess.theme
Enum Class ThemeManifestException.Code
- All Implemented Interfaces:
Serializable,Comparable<ThemeManifestException.Code>,Constable
- Enclosing class:
ThemeManifestException
Structured error codes for theme.yml failures.
Codes form a stable contract with the admin UI and the i18n
message catalog (see errors.theme_manifest_* keys). When
adding a new code, also add a corresponding addErrorsTheme*
helper and message in fess_message*.properties.
-
Nested Class Summary
Nested classes/interfaces inherited from class java.lang.Enum
Enum.EnumDesc<E extends Enum<E>> -
Enum Constant Summary
Enum ConstantsEnum ConstantDescriptiondisplayNameis missing or blank.theme.ymlcontained no document (empty file or only comments).A field value exceeds the maximum allowed length.nameis missing, blank, or fails the name regex.versionis missing or not a supported SemVer.theme.ymlroot node is not a YAML mapping.Fallback for failures that do not fit any other category.SnakeYAML failed to parsetheme.yml.entryis absolute, contains traversal, or otherwise unsafe.apiVersionis missing or does not match the expected constant.kindis missing or does not match the expected constant. -
Method Summary
Modifier and TypeMethodDescriptionstatic ThemeManifestException.CodeReturns the enum constant of this class with the specified name.static ThemeManifestException.Code[]values()Returns an array containing the constants of this enum class, in the order they are declared.
-
Enum Constant Details
-
PARSE_FAILED
SnakeYAML failed to parsetheme.yml. -
EMPTY
theme.ymlcontained no document (empty file or only comments). -
NOT_MAPPING
theme.ymlroot node is not a YAML mapping. -
FIELD_TOO_LONG
A field value exceeds the maximum allowed length. -
UNSUPPORTED_API_VERSION
apiVersionis missing or does not match the expected constant. -
UNSUPPORTED_KIND
kindis missing or does not match the expected constant. -
INVALID_NAME
nameis missing, blank, or fails the name regex. -
DISPLAY_NAME_REQUIRED
displayNameis missing or blank. -
INVALID_VERSION
versionis missing or not a supported SemVer. -
UNSAFE_ENTRY
entryis absolute, contains traversal, or otherwise unsafe. -
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
-