Enum Class SpelMessage
- 所有已实现的接口:
Serializable,Comparable<SpelMessage>,Constable
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, capturing the prefix and the error kind:
EL1005E: Type cannot be found 'String'
- 从以下版本开始:
- 4.0
- 作者:
- Andy Clement, Juergen Hoeller, Sam Brannen, Harry Yang
-
嵌套类概要
嵌套类从类继承的嵌套类/接口 java.lang.Enum
Enum.EnumDesc<E extends Enum<E>> -
枚举常量概要
枚举常量枚举常量说明 -
字段概要
字段 -
构造器概要
构造器 -
方法概要
修饰符和类型方法说明formatMessage(Object... inserts) Produce a complete message including the prefix and with the inserts applied to the message.static SpelMessageReturns the enum constant of this class with the specified name.static SpelMessage[]values()Returns an array containing the constants of this enum class, in the order they are declared.
-
枚举常量详细资料
-
TYPE_CONVERSION_ERROR
-
CONSTRUCTOR_NOT_FOUND
-
CONSTRUCTOR_INVOCATION_PROBLEM
-
METHOD_NOT_FOUND
-
TYPE_NOT_FOUND
-
FUNCTION_NOT_DEFINED
-
PROPERTY_OR_FIELD_NOT_READABLE_ON_NULL
-
PROPERTY_OR_FIELD_NOT_READABLE
-
PROPERTY_OR_FIELD_NOT_WRITABLE_ON_NULL
-
PROPERTY_OR_FIELD_NOT_WRITABLE
-
METHOD_CALL_ON_NULL_OBJECT_NOT_ALLOWED
-
CANNOT_INDEX_INTO_NULL_VALUE
-
NOT_COMPARABLE
-
INCORRECT_NUMBER_OF_ARGUMENTS_TO_FUNCTION
-
INVALID_TYPE_FOR_SELECTION
-
RESULT_OF_SELECTION_CRITERIA_IS_NOT_BOOLEAN
-
BETWEEN_RIGHT_OPERAND_MUST_BE_TWO_ELEMENT_LIST
-
INVALID_PATTERN
-
PROJECTION_NOT_SUPPORTED_ON_TYPE
-
ARGLIST_SHOULD_NOT_BE_EVALUATED
-
EXCEPTION_DURING_PROPERTY_READ
-
FUNCTION_REFERENCE_CANNOT_BE_INVOKED
-
EXCEPTION_DURING_FUNCTION_CALL
-
ARRAY_INDEX_OUT_OF_BOUNDS
-
COLLECTION_INDEX_OUT_OF_BOUNDS
-
STRING_INDEX_OUT_OF_BOUNDS
-
INDEXING_NOT_SUPPORTED_FOR_TYPE
-
INSTANCEOF_OPERATOR_NEEDS_CLASS_OPERAND
-
EXCEPTION_DURING_METHOD_INVOCATION
-
OPERATOR_NOT_SUPPORTED_BETWEEN_TYPES
-
PROBLEM_LOCATING_METHOD
-
SETVALUE_NOT_SUPPORTED
-
MULTIPLE_POSSIBLE_METHODS
-
EXCEPTION_DURING_PROPERTY_WRITE
-
NOT_AN_INTEGER
-
NOT_A_LONG
-
INVALID_FIRST_OPERAND_FOR_MATCHES_OPERATOR
-
INVALID_SECOND_OPERAND_FOR_MATCHES_OPERATOR
-
FUNCTION_MUST_BE_STATIC
-
NOT_A_REAL
-
MORE_INPUT
-
RIGHT_OPERAND_PROBLEM
-
NOT_EXPECTED_TOKEN
-
OOD
-
NON_TERMINATING_DOUBLE_QUOTED_STRING
-
NON_TERMINATING_QUOTED_STRING
-
MISSING_LEADING_ZERO_FOR_NUMBER
-
REAL_CANNOT_BE_LONG
-
UNEXPECTED_DATA_AFTER_DOT
-
MISSING_CONSTRUCTOR_ARGS
-
RUN_OUT_OF_ARGUMENTS
-
UNABLE_TO_GROW_COLLECTION
-
UNABLE_TO_GROW_COLLECTION_UNKNOWN_ELEMENT_TYPE
-
UNABLE_TO_CREATE_LIST_FOR_INDEXING
-
UNABLE_TO_CREATE_MAP_FOR_INDEXING
-
UNABLE_TO_DYNAMICALLY_CREATE_OBJECT
-
NO_BEAN_RESOLVER_REGISTERED
-
EXCEPTION_DURING_BEAN_RESOLUTION
-
INVALID_BEAN_REFERENCE
-
TYPE_NAME_EXPECTED_FOR_ARRAY_CONSTRUCTION
-
INCORRECT_ELEMENT_TYPE_FOR_ARRAY
-
MULTIDIM_ARRAY_INITIALIZER_NOT_SUPPORTED
-
MISSING_ARRAY_DIMENSION
-
INITIALIZER_LENGTH_INCORRECT
-
UNEXPECTED_ESCAPE_CHAR
-
OPERAND_NOT_INCREMENTABLE
-
OPERAND_NOT_DECREMENTABLE
-
NOT_ASSIGNABLE
-
MISSING_CHARACTER
-
LEFT_OPERAND_PROBLEM
-
MISSING_SELECTION_EXPRESSION
-
EXCEPTION_RUNNING_COMPILED_EXPRESSION
-
FLAWED_PATTERN
-
EXCEPTION_COMPILING_EXPRESSION
-
MAX_ARRAY_ELEMENTS_THRESHOLD_EXCEEDED
-
MAX_REPEATED_TEXT_SIZE_EXCEEDED
-
MAX_REGEX_LENGTH_EXCEEDED
-
MAX_CONCATENATED_STRING_LENGTH_EXCEEDED
-
MAX_EXPRESSION_LENGTH_EXCEEDED
-
VARIABLE_ASSIGNMENT_NOT_SUPPORTED
-
-
字段详细资料
-
kind
-
code
private final int code -
message
-
-
构造器详细资料
-
SpelMessage
-
-
方法详细资料
-
values
Returns an array containing the constants of this enum class, in the order they are declared.- 返回:
- 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.)- 参数:
name- 要返回的枚举常量的名称。- 返回:
- 返回带有指定名称的枚举常量
- 抛出:
IllegalArgumentException- if this enum class has no constant with the specified nameNullPointerException- 如果参数为空值
-
formatMessage
Produce a complete message including the prefix and with the inserts applied to the message.- 参数:
inserts- the inserts to put into the formatted message- 返回:
- a formatted message
-