public class RegExpException
extends java.lang.Exception
Modifier and Type | Field and Description |
---|---|
static int |
INVALID_REPEAT_COUNT
The invalid repeat count error constant.
|
static int |
UNEXPECTED_CHARACTER
The unexpected character error constant.
|
static int |
UNSUPPORTED_ESCAPE_CHARACTER
The unsupported escape character error constant.
|
static int |
UNSUPPORTED_SPECIAL_CHARACTER
The unsupported special character error constant.
|
static int |
UNTERMINATED_PATTERN
The unterminated pattern error constant.
|
Constructor and Description |
---|
RegExpException(int type,
int pos,
java.lang.String pattern)
Creates a new regular expression exception.
|
Modifier and Type | Method and Description |
---|---|
java.lang.String |
getMessage()
Returns the exception error message.
|
public static final int UNEXPECTED_CHARACTER
public static final int UNTERMINATED_PATTERN
public static final int UNSUPPORTED_SPECIAL_CHARACTER
public static final int UNSUPPORTED_ESCAPE_CHARACTER
public static final int INVALID_REPEAT_COUNT