Serializablepublic class PatternSyntaxException extends IllegalArgumentException
| 构造器 | 说明 |
|---|---|
PatternSyntaxException(String desc,
String regex,
int index) |
Constructs a new instance of this class.
|
| 限定符和类型 | 方法 | 说明 |
|---|---|---|
String |
getDescription() |
Retrieves the description of the error.
|
int |
getIndex() |
Retrieves the error index.
|
String |
getMessage() |
Returns a multi-line string containing the description of the syntax
error and its index, the erroneous regular-expression pattern, and a
visual indication of the error index within the pattern.
|
String |
getPattern() |
Retrieves the erroneous regular-expression pattern.
|
public int getIndex()
public String getDescription()
public String getPattern()
public String getMessage()
getMessage 在类中 Throwable