java.lang.Object | ||
↳ | java.lang.Enum<E extends java.lang.Enum<E>> | |
↳ | org.springframework.expression.spel.SpelMessage |
Contains all the messages that can be produced by the Spring Expression Language. Each message has a kind (info, warn, error) and a code number. Tests can be written to expect particular code numbers rather than particular text, enabling the message text to more easily be modified and the tests to run successfully in different locales.
When a message is formatted, it will have this kind of form
EL1004E: (pos 34): Type cannot be found 'String'The prefix captures the code and the error kind, whilst the position is included if it is known.
Nested Classes | |||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|
SpelMessage.Kind |
Enum Values | |||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|
SpelMessage | ARGLIST_SHOULD_NOT_BE_EVALUATED | ||||||||||
SpelMessage | ARRAY_INDEX_OUT_OF_BOUNDS | ||||||||||
SpelMessage | BETWEEN_RIGHT_OPERAND_MUST_BE_TWO_ELEMENT_LIST | ||||||||||
SpelMessage | CANNOT_INDEX_INTO_NULL_VALUE | ||||||||||
SpelMessage | COLLECTION_INDEX_OUT_OF_BOUNDS | ||||||||||
SpelMessage | CONSTRUCTOR_INVOCATION_PROBLEM | ||||||||||
SpelMessage | CONSTRUCTOR_NOT_FOUND | ||||||||||
SpelMessage | EXCEPTION_DURING_BEAN_RESOLUTION | ||||||||||
SpelMessage | EXCEPTION_DURING_FUNCTION_CALL | ||||||||||
SpelMessage | EXCEPTION_DURING_METHOD_INVOCATION | ||||||||||
SpelMessage | EXCEPTION_DURING_PROPERTY_READ | ||||||||||
SpelMessage | EXCEPTION_DURING_PROPERTY_WRITE | ||||||||||
SpelMessage | FUNCTION_MUST_BE_STATIC | ||||||||||
SpelMessage | FUNCTION_NOT_DEFINED | ||||||||||
SpelMessage | FUNCTION_REFERENCE_CANNOT_BE_INVOKED | ||||||||||
SpelMessage | INCORRECT_ELEMENT_TYPE_FOR_ARRAY | ||||||||||
SpelMessage | INCORRECT_NUMBER_OF_ARGUMENTS_TO_FUNCTION | ||||||||||
SpelMessage | INDEXING_NOT_SUPPORTED_FOR_TYPE | ||||||||||
SpelMessage | INITIALIZER_LENGTH_INCORRECT | ||||||||||
SpelMessage | INSTANCEOF_OPERATOR_NEEDS_CLASS_OPERAND | ||||||||||
SpelMessage | INVALID_BEAN_REFERENCE | ||||||||||
SpelMessage | INVALID_FIRST_OPERAND_FOR_MATCHES_OPERATOR | ||||||||||
SpelMessage | INVALID_PATTERN | ||||||||||
SpelMessage | INVALID_SECOND_OPERAND_FOR_MATCHES_OPERATOR | ||||||||||
SpelMessage | INVALID_TYPE_FOR_SELECTION | ||||||||||
SpelMessage | METHOD_CALL_ON_NULL_OBJECT_NOT_ALLOWED | ||||||||||
SpelMessage | METHOD_NOT_FOUND | ||||||||||
SpelMessage | MISSING_ARRAY_DIMENSION | ||||||||||
SpelMessage | MISSING_CONSTRUCTOR_ARGS | ||||||||||
SpelMessage | MISSING_LEADING_ZERO_FOR_NUMBER | ||||||||||
SpelMessage | MORE_INPUT | ||||||||||
SpelMessage | MULTIDIM_ARRAY_INITIALIZER_NOT_SUPPORTED | ||||||||||
SpelMessage | MULTIPLE_POSSIBLE_METHODS | ||||||||||
SpelMessage | NON_TERMINATING_DOUBLE_QUOTED_STRING | ||||||||||
SpelMessage | NON_TERMINATING_QUOTED_STRING | ||||||||||
SpelMessage | NOT_AN_INTEGER | ||||||||||
SpelMessage | NOT_A_LONG | ||||||||||
SpelMessage | NOT_A_REAL | ||||||||||
SpelMessage | NOT_COMPARABLE | ||||||||||
SpelMessage | NOT_EXPECTED_TOKEN | ||||||||||
SpelMessage | NO_BEAN_RESOLVER_REGISTERED | ||||||||||
SpelMessage | OOD | ||||||||||
SpelMessage | OPERATOR_NOT_SUPPORTED_BETWEEN_TYPES | ||||||||||
SpelMessage | PROBLEM_LOCATING_METHOD | ||||||||||
SpelMessage | PROJECTION_NOT_SUPPORTED_ON_TYPE | ||||||||||
SpelMessage | PROPERTY_OR_FIELD_NOT_READABLE | ||||||||||
SpelMessage | PROPERTY_OR_FIELD_NOT_READABLE_ON_NULL | ||||||||||
SpelMessage | PROPERTY_OR_FIELD_NOT_WRITABLE | ||||||||||
SpelMessage | PROPERTY_OR_FIELD_NOT_WRITABLE_ON_NULL | ||||||||||
SpelMessage | REAL_CANNOT_BE_LONG | ||||||||||
SpelMessage | RESULT_OF_SELECTION_CRITERIA_IS_NOT_BOOLEAN | ||||||||||
SpelMessage | RIGHT_OPERAND_PROBLEM | ||||||||||
SpelMessage | RUN_OUT_OF_ARGUMENTS | ||||||||||
SpelMessage | SETVALUE_NOT_SUPPORTED | ||||||||||
SpelMessage | STRING_INDEX_OUT_OF_BOUNDS | ||||||||||
SpelMessage | TYPE_CONVERSION_ERROR | ||||||||||
SpelMessage | TYPE_NAME_EXPECTED_FOR_ARRAY_CONSTRUCTION | ||||||||||
SpelMessage | TYPE_NOT_FOUND | ||||||||||
SpelMessage | UNABLE_TO_CREATE_LIST_FOR_INDEXING | ||||||||||
SpelMessage | UNABLE_TO_CREATE_MAP_FOR_INDEXING | ||||||||||
SpelMessage | UNABLE_TO_DYNAMICALLY_CREATE_OBJECT | ||||||||||
SpelMessage | UNABLE_TO_GROW_COLLECTION | ||||||||||
SpelMessage | UNABLE_TO_GROW_COLLECTION_UNKNOWN_ELEMENT_TYPE | ||||||||||
SpelMessage | UNEXPECTED_DATA_AFTER_DOT |
Public Methods | |||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|
Produce a complete message including the prefix, the position (if known) and with the inserts applied to the
message.
| |||||||||||
[Expand]
Inherited Methods | |||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|
From class
java.lang.Enum
| |||||||||||
From class
java.lang.Object
| |||||||||||
From interface
java.lang.Comparable
|
Produce a complete message including the prefix, the position (if known) and with the inserts applied to the message.
pos | the position, if less than zero it is ignored and not included in the message |
---|---|
inserts | the inserts to put into the formatted message |