public class ParameterizedPatternSyntaxException extends IllegalArgumentException
ParameterizedPattern.| Constructor and Description |
|---|
ParameterizedPatternSyntaxException(String message,
String pattern,
int index)
Create a new
ParameterizedPatternSyntaxException. |
| Modifier and Type | Method and Description |
|---|---|
int |
getIndex()
Returns the index at which the error is located in the pattern, or -1 if the location is not known.
|
String |
getMessage()
Returns a string containing the description of the syntax error and its location, the erroneous parameterized
pattern string, and a visual location of the error index within the pattern (if possible.)
|
String |
getPattern()
Returns the pattern containing errors.
|
addSuppressed, fillInStackTrace, getCause, getLocalizedMessage, getStackTrace, getSuppressed, initCause, printStackTrace, printStackTrace, printStackTrace, setStackTrace, toStringpublic ParameterizedPatternSyntaxException(String message, String pattern, int index)
ParameterizedPatternSyntaxException.message - The error messagepattern - The pattern that contains errorsindex - The location of the error, or -1 if location is unknownpublic int getIndex()
public String getPattern()
public String getMessage()
getMessage in class ThrowableCopyright © 2019 OCPsoft. All rights reserved.