| Modifier and Type | Field and Description |
|---|---|
| private final String | |
| private final int | |
| private final String | |
| private static final long |
| Access | Constructor and Description |
|---|---|
| public | PatternSyntaxException(String
A description of the error desc, String The erroneous pattern regex, int The approximate index in the pattern of the error,
or index)-1 if the index is not knownConstructs a new instance of this class. |
| Modifier and Type | Method and Description |
|---|---|
| public String | |
| public int | Returns: The approximate index in the pattern of the error, or-1 if the index is not knownRetrieves the error index. |
| public String | Returns: The full detail messageOverrides java. 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 |
| desc | back to summary |
|---|---|
| private final String desc | |
| index | back to summary |
|---|---|
| private final int index | |
| pattern | back to summary |
|---|---|
| private final String pattern | |
| serialVersionUID | back to summary |
|---|---|
| private static final long serialVersionUID Hides java. | |
| PatternSyntaxException | back to summary |
|---|---|
| public PatternSyntaxException(String desc, String regex, int index) Constructs a new instance of this class. | |
| getDescription | back to summary |
|---|---|
| public String getDescription() Retrieves the description of the error.
| |
| getIndex | back to summary |
|---|---|
| public int getIndex() Retrieves the error index.
| |
| getMessage | back to summary |
|---|---|
| public String getMessage() Overrides java. 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.
| |
| getPattern | back to summary |
|---|---|
| public String getPattern() Retrieves the erroneous regular-expression pattern.
| |