类 PatternParseException
- java.lang.Object
- java.lang.Throwable
- java.lang.Exception
- java.lang.RuntimeException
- java.lang.IllegalArgumentException
- org.springframework.web.util.pattern.PatternParseException
- 所有已实现的接口:
Serializable
public class PatternParseException extends IllegalArgumentException
Exception that is thrown when there is a problem with the pattern being parsed.- 从以下版本开始:
- 5.0
- 作者:
- Andy Clement
- 另请参阅:
- 序列化表格
嵌套类概要
嵌套类 修饰符和类型 类 说明 static class
PatternParseException.PatternMessage
The messages that can be included in aPatternParseException
when there is a parse failure.
方法概要
所有方法 实例方法 具体方法 修饰符和类型 方法 说明 Object[]
getInserts()
String
getMessage()
Return a formatted message with inserts applied.PatternParseException.PatternMessage
getMessageType()
int
getPosition()
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.
方法详细资料
getMessage
public String getMessage()
Return a formatted message with inserts applied.- 覆盖:
getMessage
在类中Throwable
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()