|
Build 1.0_r1(from source) | |||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectjava.lang.Throwable
java.lang.Exception
java.lang.RuntimeException
java.lang.IllegalArgumentException
java.util.regex.PatternSyntaxException
public class PatternSyntaxException
Encapsulates a syntax error that occurred during the compilation of a
Pattern. Might include a detailed description, the original regular
expression, and the index at which the error occurred.
Pattern.compile(String),
Pattern.compile(java.lang.String,int),
Serialized Form| Constructor Summary | |
|---|---|
PatternSyntaxException(String description,
String pattern,
int index)
Creates a new PatternSyntaxException for a given message, pattern, and error index. |
|
| Method Summary | |
|---|---|
String |
getDescription()
Returns the description of the syntax error, or null if the
description is not known. |
int |
getIndex()
Returns the character index around which the error occurred, or -1 if the index is not known. |
String |
getMessage()
Returns a detailed error message for the exception. |
String |
getPattern()
Returns the syntactically incorrect regular expression. |
| Methods inherited from class java.lang.Throwable |
|---|
fillInStackTrace, getCause, getLocalizedMessage, getStackTrace, initCause, printStackTrace, printStackTrace, printStackTrace, setStackTrace, toString |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
| Constructor Detail |
|---|
public PatternSyntaxException(String description,
String pattern,
int index)
description - the description of the syntax error, or null if the
description is not known.pattern - the syntactically incorrect regular expression, or
null if the regular expression is not known.index - the character index around which the error occurred, or -1 if
the index is not known.| Method Detail |
|---|
public String getPattern()
public String getMessage()
getMessage in class Throwablepublic String getDescription()
null if the
description is not known.
public int getIndex()
|
Build 1.0_r1(from source) | |||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||