|
|||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||
java.lang.Object
|
+--java.lang.Throwable
|
+--java.lang.Exception
|
+--net.percederberg.grammatica.parser.re.RegExpException
A regular expression exception. This exception is thrown if a regular expression couldn't be processed (or "compiled") properly.
| Field Summary | |
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 Summary | |
RegExpException(int type,
int pos,
java.lang.String pattern)
Creates a new regular expression exception. |
|
| Method Summary | |
java.lang.String |
getMessage()
Returns the exception error message. |
| Methods inherited from class java.lang.Throwable |
fillInStackTrace, getCause, getLocalizedMessage, getStackTrace, initCause, printStackTrace, printStackTrace, printStackTrace, setStackTrace, toString |
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
| Field Detail |
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
| Constructor Detail |
public RegExpException(int type,
int pos,
java.lang.String pattern)
type - the error type constantpos - the error positionpattern - the regular expression pattern| Method Detail |
public java.lang.String getMessage()
getMessage in class java.lang.Throwable
|
|||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||