|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectjava.lang.Throwable
java.lang.Exception
net.percederberg.grammatica.parser.ParserCreationException
A parser creation exception. This exception is used for signalling an error in the token or production patterns, making it impossible to create a working parser or tokenizer.
Field Summary | |
static int |
INFINITE_LOOP_ERROR
The infinite loop error type constant. |
static int |
INHERENT_AMBIGUITY_ERROR
The inherent ambiguity error type constant. |
static int |
INTERNAL_ERROR
The internal error type constant. |
static int |
INVALID_PARSER_ERROR
The invalid parser error type constant. |
static int |
INVALID_PRODUCTION_ERROR
The invalid production error type constant. |
static int |
INVALID_TOKEN_ERROR
The invalid token error type constant. |
Constructor Summary | |
ParserCreationException(int type,
java.lang.String info)
Creates a new parser creation exception. |
|
ParserCreationException(int type,
java.lang.String name,
java.lang.String info)
Creates a new parser creation exception. |
|
ParserCreationException(int type,
java.lang.String name,
java.lang.String info,
java.util.ArrayList details)
Creates a new parser creation exception. |
Method Summary | |
java.lang.String |
getDetails()
Returns the detailed error information as a string |
int |
getErrorType()
Returns the error type. |
java.lang.String |
getInfo()
Returns the additional error information. |
java.lang.String |
getMessage()
Returns the error message. |
java.lang.String |
getName()
Returns the token or production name. |
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 INTERNAL_ERROR
public static final int INVALID_PARSER_ERROR
public static final int INVALID_TOKEN_ERROR
public static final int INVALID_PRODUCTION_ERROR
public static final int INFINITE_LOOP_ERROR
public static final int INHERENT_AMBIGUITY_ERROR
Constructor Detail |
public ParserCreationException(int type, java.lang.String info)
type
- the parse error typeinfo
- the additional error informationpublic ParserCreationException(int type, java.lang.String name, java.lang.String info)
type
- the parse error typename
- the token or production pattern nameinfo
- the additional error informationpublic ParserCreationException(int type, java.lang.String name, java.lang.String info, java.util.ArrayList details)
type
- the parse error typename
- the token or production pattern nameinfo
- the additional error informationdetails
- the error details listMethod Detail |
public int getErrorType()
public java.lang.String getName()
public java.lang.String getInfo()
public java.lang.String getDetails()
public java.lang.String getMessage()
|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |