public class RegexSyntaxException extends Exception
Modifier and Type | Field and Description |
---|---|
static int |
UNKNOWN_POSITION
Represents an unknown position within a string containing a regular expression.
|
Constructor and Description |
---|
RegexSyntaxException(String detail) |
RegexSyntaxException(String detail,
int position) |
Modifier and Type | Method and Description |
---|---|
int |
getPosition()
Returns the index into the regular expression where the error was detected
or
UNKNOWN_POSITION if this is unknown. |
addSuppressed, fillInStackTrace, getCause, getLocalizedMessage, getMessage, getStackTrace, getSuppressed, initCause, printStackTrace, printStackTrace, printStackTrace, setStackTrace, toString
public static final int UNKNOWN_POSITION