Enum Class BeanQuerySyntaxException.Code
java.lang.Object
java.lang.Enum<BeanQuerySyntaxException.Code>
org.apache.juneau.commons.beanquery.BeanQuerySyntaxException.Code
- All Implemented Interfaces:
Serializable,Comparable<BeanQuerySyntaxException.Code>,Constable
- Enclosing class:
- BeanQuerySyntaxException
Stable identity for a
BeanQuerySyntaxException, independent of the (free-text) message.
Codes are part of the public API: renaming one is a breaking change. New codes may be added.
- Since:
- 10.0.0
-
Nested Class Summary
Nested classes/interfaces inherited from class java.lang.Enum
Enum.EnumDesc<E extends Enum<E>> -
Enum Constant Summary
Enum ConstantsEnum ConstantDescriptionThe operator's argument count is outside its declaredminArgs/maxArgs.A literal argument or bare literal is not a parseablenumeric,booleanortimestampvalue for its column's type (seeSearchType.parse(String)).The same column appears more than once at the top level of a search string.A comma-separated argument slot is empty (a stray or trailing comma).The search string is empty or blank.A$or/$and/$notgroup has too few or too many items.$+ letter-led text before(that is not a valid operator name (e.g.An operator name with no(...)call following it.A requested paging position is negative.An operator does not apply to the column's declaredSearchType.The raw options string exceeds the configured maximum length.$regexwas used but regex search is not enabled for this list.A$regexmatch exceeded its evaluation deadline.A$regexpattern exceeds the configured maximum length.The raw search string exceeds the configured maximum length.An expression nests deeper than the configured maximum.The search string has more top-level clauses than the configured maximum.The sort clause names more keys than the configured maximum.Text follows the closing)of a top-level operator call.An operator call, or a #2 group, never closes.A search, sort, or view column is not in the allow-list.The operator name is well-formed but not registered in the operator set in use.A quoted literal never finds its closing quote. -
Method Summary
Modifier and TypeMethodDescriptionReturns the enum constant of this class with the specified name.static BeanQuerySyntaxException.Code[]values()Returns an array containing the constants of this enum class, in the order they are declared.
-
Enum Constant Details
-
EMPTY_EXPRESSION
The search string is empty or blank. -
INVALID_OPERATOR_NAME
$+ letter-led text before(that is not a valid operator name (e.g.$eq!(x)). -
MALFORMED_OPERATOR
An operator name with no(...)call following it. -
UNKNOWN_OPERATOR
The operator name is well-formed but not registered in the operator set in use. -
BAD_ARG_COUNT
The operator's argument count is outside its declaredminArgs/maxArgs. -
EMPTY_ARGUMENT
A comma-separated argument slot is empty (a stray or trailing comma). -
UNBALANCED
An operator call, or a #2 group, never closes. -
TRAILING_TEXT
Text follows the closing)of a top-level operator call. -
UNTERMINATED_QUOTE
A quoted literal never finds its closing quote. -
GROUP_ARITY
A$or/$and/$notgroup has too few or too many items. -
DUPLICATE_COLUMN
The same column appears more than once at the top level of a search string. -
SEARCH_TOO_LONG
The raw search string exceeds the configured maximum length. -
OPTS_TOO_LONG
The raw options string exceeds the configured maximum length. -
TOO_MANY_CLAUSES
The search string has more top-level clauses than the configured maximum. -
UNKNOWN_COLUMN
A search, sort, or view column is not in the allow-list. -
TOO_DEEP
An expression nests deeper than the configured maximum. -
REGEX_DISABLED
$regexwas used but regex search is not enabled for this list. -
REGEX_TOO_LONG
A$regexpattern exceeds the configured maximum length. -
REGEX_TIMEOUT
A$regexmatch exceeded its evaluation deadline. -
OPERATOR_TYPE
An operator does not apply to the column's declaredSearchType. -
TOO_MANY_SORT_KEYS
The sort clause names more keys than the configured maximum. -
NEGATIVE_POSITION
A requested paging position is negative. -
BAD_VALUE
A literal argument or bare literal is not a parseablenumeric,booleanortimestampvalue for its column's type (seeSearchType.parse(String)).
-
-
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
-