Enum PatternParseException.PatternMessage
- java.lang.Object
- java.lang.Enum<PatternParseException.PatternMessage>
- org.springframework.web.util.pattern.PatternParseException.PatternMessage
- All Implemented Interfaces:
Serializable
,Comparable<PatternParseException.PatternMessage>
- Enclosing class:
- PatternParseException
public static enum PatternParseException.PatternMessage extends Enum<PatternParseException.PatternMessage>
The messages that can be included in aPatternParseException
when there is a parse failure.
Enum Constant Summary
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description String
formatMessage(Object... inserts)
static PatternParseException.PatternMessage
valueOf(String name)
Returns the enum constant of this type with the specified name.static PatternParseException.PatternMessage[]
values()
Returns an array containing the constants of this enum type, in the order they are declared.
Enum Constant Detail
MISSING_CLOSE_CAPTURE
public static final PatternParseException.PatternMessage MISSING_CLOSE_CAPTURE
MISSING_OPEN_CAPTURE
public static final PatternParseException.PatternMessage MISSING_OPEN_CAPTURE
ILLEGAL_NESTED_CAPTURE
public static final PatternParseException.PatternMessage ILLEGAL_NESTED_CAPTURE
CANNOT_HAVE_ADJACENT_CAPTURES
public static final PatternParseException.PatternMessage CANNOT_HAVE_ADJACENT_CAPTURES
ILLEGAL_CHARACTER_AT_START_OF_CAPTURE_DESCRIPTOR
public static final PatternParseException.PatternMessage ILLEGAL_CHARACTER_AT_START_OF_CAPTURE_DESCRIPTOR
ILLEGAL_CHARACTER_IN_CAPTURE_DESCRIPTOR
public static final PatternParseException.PatternMessage ILLEGAL_CHARACTER_IN_CAPTURE_DESCRIPTOR
NO_MORE_DATA_EXPECTED_AFTER_CAPTURE_THE_REST
public static final PatternParseException.PatternMessage NO_MORE_DATA_EXPECTED_AFTER_CAPTURE_THE_REST
BADLY_FORMED_CAPTURE_THE_REST
public static final PatternParseException.PatternMessage BADLY_FORMED_CAPTURE_THE_REST
MISSING_REGEX_CONSTRAINT
public static final PatternParseException.PatternMessage MISSING_REGEX_CONSTRAINT
ILLEGAL_DOUBLE_CAPTURE
public static final PatternParseException.PatternMessage ILLEGAL_DOUBLE_CAPTURE
REGEX_PATTERN_SYNTAX_EXCEPTION
public static final PatternParseException.PatternMessage REGEX_PATTERN_SYNTAX_EXCEPTION
CAPTURE_ALL_IS_STANDALONE_CONSTRUCT
public static final PatternParseException.PatternMessage CAPTURE_ALL_IS_STANDALONE_CONSTRUCT
Method Detail
values
public static PatternParseException.PatternMessage[] values()
Returns an array containing the constants of this enum type, in the order they are declared. This method may be used to iterate over the constants as follows:for (PatternParseException.PatternMessage c : PatternParseException.PatternMessage.values()) System.out.println(c);
- Returns:
- an array containing the constants of this enum type, in the order they are declared
valueOf
public static PatternParseException.PatternMessage valueOf(String name)
Returns the enum constant of this type with the specified name. The string must match exactly an identifier used to declare an enum constant in this type. (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 type has no constant with the specified nameNullPointerException
- if the argument is null
formatMessage
public String formatMessage(Object... inserts)