- All Implemented Interfaces:
Serializable,Comparable<ErrorCode>,Constable
Symbolic constants for read/write failures.
-
Nested Class Summary
Nested classes/interfaces inherited from class java.lang.Enum
Enum.EnumDesc<E extends Enum<E>> -
Enum Constant Summary
Enum ConstantsEnum ConstantDescriptionIndicates that thePathWalkerencountered anull segmentor an empty segment while not processing aMap.Indicates that thePathWalkertrapped an exception from underlying code.Indicates that thePathWalkerhad arrived on a list or array, so expected the next segment in thePathto be an array index, but found something other than an integer.Indicates that thePathWalkerencountered an array index in thePath, but the value of the preceding path segment was something other than a list or array.Indicates that thePathWalkerencountered an array index in thePaththat was out of bounds for the list or array it was processing.Indicates that aKeyDeserializerfailed to deserialize a path segment into a map key.Indicates that thePathWalkerencountered a segment that did not correspond to any key of theMapit was processing.Indicates that thePathWalkerencountered a segment that did not correspond to any (accessible) property of the JavaBean it was processing.Indicates that thePathWalkerattempted to modify aListorMapand theListorMapresponded by throwing anUnsupportedOperationException.Indicates that thePathcontinued after having reached a terminal value (likenullor a primitive value) or an opaque value (like aString).Indicates that thePathWalkercould not write a value because its type was incompatible with the target property or array.Indicates that thePathWalkerencountered a value that it doesn't know how to read or write. -
Method Summary
-
Enum Constant Details
-
INDEX_EXPECTED
Indicates that thePathWalkerhad arrived on a list or array, so expected the next segment in thePathto be an array index, but found something other than an integer. -
INDEX_NOT_ALLOWED
Indicates that thePathWalkerencountered an array index in thePath, but the value of the preceding path segment was something other than a list or array. -
INDEX_OUT_OF_BOUNDS
Indicates that thePathWalkerencountered an array index in thePaththat was out of bounds for the list or array it was processing. -
NO_SUCH_PROPERTY
Indicates that thePathWalkerencountered a segment that did not correspond to any (accessible) property of the JavaBean it was processing. -
NO_SUCH_KEY
Indicates that thePathWalkerencountered a segment that did not correspond to any key of theMapit was processing. This code is only returned by thereadmethods of thePathWalkerclass. Thewritemethods just add the key to the map. -
KEY_DESERIALIZATION_FAILED
Indicates that aKeyDeserializerfailed to deserialize a path segment into a map key. -
EMPTY_SEGMENT
Indicates that thePathWalkerencountered anull segmentor an empty segment while not processing aMap. (nulland the empty string can only possibly be valid as map keys.) -
TERMINAL_VALUE
Indicates that thePathcontinued after having reached a terminal value (likenullor a primitive value) or an opaque value (like aString). -
TYPE_NOT_SUPPORTED
Indicates that thePathWalkerencountered a value that it doesn't know how to read or write. -
TYPE_MISMATCH
Indicates that thePathWalkercould not write a value because its type was incompatible with the target property or array. -
NOT_MODIFIABLE
Indicates that thePathWalkerattempted to modify aListorMapand theListorMapresponded by throwing anUnsupportedOperationException. -
EXCEPTION
Indicates that thePathWalkertrapped an exception from underlying code.
-
-
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
-