java.lang.Object | |||||
↳ | java.lang.Throwable | ||||
↳ | java.lang.Exception | ||||
↳ | java.lang.RuntimeException | ||||
↳ | java.lang.IllegalArgumentException | ||||
↳ | java.util.regex.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.
Public Constructors | |||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|
Creates a new PatternSyntaxException for a given message, pattern, and
error index.
|
Public Methods | |||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|
Returns the description of the syntax error, or
null if the
description is not known. | |||||||||||
Returns the character index around which the error occurred, or -1 if the
index is not known.
| |||||||||||
Returns a detailed error message for the exception.
| |||||||||||
Returns the syntactically incorrect regular expression.
|
[Expand]
Inherited Methods | |||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|
From class
java.lang.Throwable
| |||||||||||
From class
java.lang.Object
|
Creates a new PatternSyntaxException for a given message, pattern, and error 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. |
Returns the description of the syntax error, or null
if the
description is not known.
Returns the character index around which the error occurred, or -1 if the index is not known.
Returns a detailed error message for the exception. The message is potentially multi-line, and it might include a detailed description, the original regular expression, and the index at which the error occured.
Returns the syntactically incorrect regular expression.