public class ScannerException extends java.lang.Exception
Constructor and Description |
---|
ScannerException(ETokenType type,
java.lang.String yyText,
int position)
Create a new
ScannerException . |
Modifier and Type | Method and Description |
---|---|
int |
getLineNumber()
Returns the line number where the proplem ocurred.
|
java.lang.String |
getMessage()
Get an error message.
|
public ScannerException(ETokenType type, java.lang.String yyText, int position)
ScannerException
.type
- the token type representing the scanner error. Expected to
have token class ETokenType.ETokenClass.ERROR
.yyText
- A verbatim copy of the scanned text.position
- The line number where the problem occurred.public java.lang.String getMessage()
getMessage
in class java.lang.Throwable
public int getLineNumber()