public class PatternSyntaxException extends java.lang.IllegalArgumentException
| Constructor and Description |
|---|
PatternSyntaxException(java.lang.String description,
java.lang.String pattern,
int index)
Creates a new PatternSyntaxException.
|
| Modifier and Type | Method and Description |
|---|---|
java.lang.String |
getDescription()
Returns a human readable escription of the syntax error.
|
int |
getIndex()
Returns the index of the first character in the String that was probably
invalid, or -1 when unknown.
|
java.lang.String |
getMessage()
Returns a string containing a line with the description, a line with
the original pattern and a line indicating with a ^ which character is
probably the first invalid character in the pattern if the index is not
negative.
|
java.lang.String |
getPattern()
Returns the original pattern that contained the syntax error.
|
public PatternSyntaxException(java.lang.String description, java.lang.String pattern, int index)
description - Human readable escription of the syntax error.pattern - The original pattern that contained the syntax error.index - Index of the first character in the String that was
probably invalid, or -1 when unknown.public java.lang.String getDescription()
public java.lang.String getPattern()
public int getIndex()
public java.lang.String getMessage()
getMessage in class java.lang.Throwable