Class PatternParseException
- java.lang.Object
- java.lang.Throwable
- java.lang.Exception
- java.lang.RuntimeException
- java.lang.IllegalArgumentException
- org.springframework.web.util.pattern.PatternParseException
- All Implemented Interfaces:
Serializable
public class PatternParseException extends IllegalArgumentException
Exception that is thrown when there is a problem with the pattern being parsed.- Since:
- 5.0
- Author:
- Andy Clement
- See Also:
- Serialized Form
Nested Class Summary
Nested Classes Modifier and Type Class Description static classPatternParseException.PatternMessageThe messages that can be included in aPatternParseExceptionwhen there is a parse failure.
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description Object[]getInserts()StringgetMessage()Return a formatted message with inserts applied.PatternParseException.PatternMessagegetMessageType()intgetPosition()StringtoDetailedString()Return a detailed message that includes the original pattern text with a pointer to the error position, as well as the error message.Methods inherited from class java.lang.Throwable
addSuppressed, fillInStackTrace, getCause, getLocalizedMessage, getStackTrace, getSuppressed, initCause, printStackTrace, printStackTrace, printStackTrace, setStackTrace, toString
Method Detail
getMessage
public String getMessage()
Return a formatted message with inserts applied.- Overrides:
getMessagein classThrowable
toDetailedString
public String toDetailedString()
Return a detailed message that includes the original pattern text with a pointer to the error position, as well as the error message.
getPosition
public int getPosition()
getMessageType
public PatternParseException.PatternMessage getMessageType()
getInserts
public Object[] getInserts()