Package software.amazon.smithy.jmespath
Enum Class JmespathExceptionType
- All Implemented Interfaces:
Serializable,Comparable<JmespathExceptionType>,Constable
Defines categories of JMESPath errors.
A superset of the types defined in the specification.
-
Nested Class Summary
Nested classes/interfaces inherited from class java.lang.Enum
Enum.EnumDesc<E extends Enum<E>> -
Enum Constant Summary
Enum ConstantsEnum ConstantDescriptionThe "invalid-arity" class of JMESPath errors.The "invalid-type" class of JMESPath errors.The "invalid-value" class of JMESPath errors.Any other error cause.The "syntax" class of JMESPath errors.The "unknown-function" class of JMESPath errors. -
Method Summary
Modifier and TypeMethodDescriptionstatic JmespathExceptionTypeReturns the corresponding enum value for one of the identifiers used in the JMESPath specification.static JmespathExceptionTypeReturns the enum constant of this class with the specified name.static JmespathExceptionType[]values()Returns an array containing the constants of this enum class, in the order they are declared.
-
Enum Constant Details
-
SYNTAX
The "syntax" class of JMESPath errors."syntax" is not listed in the specification, but it is used in the compliance tests to indicate invalid expressions.
-
INVALID_TYPE
The "invalid-type" class of JMESPath errors. -
INVALID_VALUE
The "invalid-value" class of JMESPath errors. -
UNKNOWN_FUNCTION
The "unknown-function" class of JMESPath errors. -
INVALID_ARITY
The "invalid-arity" class of JMESPath errors. -
OTHER
Any other error cause.
-
-
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
-
fromID
Returns the corresponding enum value for one of the identifiers used in the JMESPath specification.
-