July 2007
Intermediate to advanced
128 pages
2h 39m
English
java.util.regex.PatternSyntaxException
Thrown to indicate a syntax error in a regular expression pattern.
PatternSyntaxException(Stringdesc, Stringregex, intindex)Construct an instance of this class.
String getDescription( )Return error description.
int getIndex( )Return error index.
String getMessage( )Return a multiline error message containing error description, index, regular expression pattern, and indication of the position of the error within the pattern.
String getPattern( )Return the regular expression pattern that threw the exception.