| |
|
| java.lang.Object java.lang.Throwable java.lang.Exception java.lang.RuntimeException java.lang.IllegalArgumentException java.util.regex.PatternSyntaxException
PatternSyntaxException | public class PatternSyntaxException extends IllegalArgumentException (Code) | | Unchecked exception thrown to indicate a syntax error in a
regular-expression pattern.
author: unascribed version: 1.22, 07/05/05 since: 1.4 |
Method Summary | |
public String | getDescription() Retrieves the description of the error. | public int | getIndex() Retrieves the error index. | public 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. | public String | getPattern() Retrieves the erroneous regular-expression pattern. |
PatternSyntaxException | public PatternSyntaxException(String desc, String regex, int index)(Code) | | Constructs a new instance of this class.
Parameters: desc - A description of the error Parameters: regex - The erroneous pattern Parameters: index - The approximate index in the pattern of the error,or -1 if the index is not known |
getDescription | public String getDescription()(Code) | | Retrieves the description of the error.
The description of the error |
getIndex | public int getIndex()(Code) | | Retrieves the error index.
The approximate index in the pattern of the error,or -1 if the index is not known |
getMessage | public String getMessage()(Code) | | 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.
The full detail message |
getPattern | public String getPattern()(Code) | | Retrieves the erroneous regular-expression pattern.
The erroneous pattern |
|
|
|