Package jmri.jmris.simpleserver.parser
Class TokenMgrError
- java.lang.Object
-
- java.lang.Throwable
-
- java.lang.Error
-
- jmri.jmris.simpleserver.parser.TokenMgrError
-
- All Implemented Interfaces:
java.io.Serializable
public class TokenMgrError extends java.lang.Error
- See Also:
- Serialized Form
-
-
Field Summary
Fields Modifier and Type Field Description (package private) int
errorCode
static int
INVALID_LEXICAL_STATE
static int
LEXICAL_ERROR
static int
LOOP_DETECTED
static int
STATIC_LEXER_ERROR
-
Constructor Summary
Constructors Constructor Description TokenMgrError()
TokenMgrError(boolean EOFSeen, int lexState, int errorLine, int errorColumn, java.lang.String errorAfter, int curChar, int reason)
TokenMgrError(java.lang.String message, int reason)
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description protected static java.lang.String
addEscapes(java.lang.String str)
java.lang.String
getMessage()
protected static java.lang.String
LexicalErr(boolean EOFSeen, int lexState, int errorLine, int errorColumn, java.lang.String errorAfter, int curChar)
-
-
-
Field Detail
-
LEXICAL_ERROR
public static final int LEXICAL_ERROR
- See Also:
- Constant Field Values
-
STATIC_LEXER_ERROR
public static final int STATIC_LEXER_ERROR
- See Also:
- Constant Field Values
-
INVALID_LEXICAL_STATE
public static final int INVALID_LEXICAL_STATE
- See Also:
- Constant Field Values
-
LOOP_DETECTED
public static final int LOOP_DETECTED
- See Also:
- Constant Field Values
-
errorCode
int errorCode
-
-
Constructor Detail
-
TokenMgrError
public TokenMgrError()
-
TokenMgrError
public TokenMgrError(java.lang.String message, int reason)
-
TokenMgrError
public TokenMgrError(boolean EOFSeen, int lexState, int errorLine, int errorColumn, java.lang.String errorAfter, int curChar, int reason)
-
-
Method Detail
-
addEscapes
protected static final java.lang.String addEscapes(java.lang.String str)
-
LexicalErr
protected static java.lang.String LexicalErr(boolean EOFSeen, int lexState, int errorLine, int errorColumn, java.lang.String errorAfter, int curChar)
-
getMessage
public java.lang.String getMessage()
- Overrides:
getMessage
in classjava.lang.Throwable
-
-