Class ScriptParser.ErrorMessage
java.lang.Object
com.blackrook.rookscript.compiler.ScriptParser.ErrorMessage
- Enclosing class:
- ScriptParser
An error object added when an error is logged.
-
Method Summary
-
Method Details
-
getStreamName
- Returns:
- the stream name / file name that the error was emitted from.
-
getTokenLexeme
- Returns:
- the lexeme of the current token that the error was emitted from.
-
getLineNumber
public int getLineNumber()- Returns:
- the line number that the error was emitted from.
-
getCharacterIndex
public int getCharacterIndex()- Returns:
- the character index that the error was emitted from.
-
getMessage
- Returns:
- the error message.
-
toString
-