public class ParserCreationException
extends java.lang.Exception
| Modifier and Type | Field and Description |
|---|---|
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 and Description |
|---|
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.
|
| Modifier and Type | Method and Description |
|---|---|
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.
|
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
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 listpublic int getErrorType()
public java.lang.String getName()
public java.lang.String getInfo()
public java.lang.String getDetails()
public java.lang.String getMessage()
getMessage in class java.lang.Throwable