public class BParseException
extends java.lang.RuntimeException
| Constructor and Description |
|---|
BParseException(Token token,
SourcecodeRange range,
java.lang.String message) |
BParseException(Token token,
SourcecodeRange range,
java.lang.String msg,
java.lang.String realMsg) |
BParseException(Token token,
SourcecodeRange range,
java.lang.String msg,
java.lang.String realMsg,
java.lang.Throwable throwable) |
BParseException(Token token,
java.lang.String message) |
| Modifier and Type | Method and Description |
|---|---|
SourcecodeRange |
getRange()
Returns the
SourcecodeRange which is causing this exception. |
java.lang.String |
getRealMsg() |
Token |
getToken()
Token which caused the parse exception. |
public BParseException(Token token, SourcecodeRange range, java.lang.String message)
public BParseException(Token token, java.lang.String message)
public BParseException(Token token, SourcecodeRange range, java.lang.String msg, java.lang.String realMsg)
public BParseException(Token token, SourcecodeRange range, java.lang.String msg, java.lang.String realMsg, java.lang.Throwable throwable)
public Token getToken()
Token which caused the parse exception. May be null
if no special token was affected.public SourcecodeRange getRange()
SourcecodeRange which is causing this exception. Will
be null in case of a real lexing or parsing exception cause
sourcecode ranges for the Nodes of the AST have not yet been
evaluated then.public java.lang.String getRealMsg()