public class CheckpointedStreamDefinitionException extends StreamDefinitionException
expressionString, inserts, message, position
Constructor and Description |
---|
CheckpointedStreamDefinitionException(java.lang.String expressionString,
int textPosition,
int tokenPointer,
int checkpointPointer,
java.util.List<Token> tokens,
XDDSLMessages message,
java.lang.Object... inserts)
Construct a new exception
|
Modifier and Type | Method and Description |
---|---|
int |
getCheckpointPointer() |
int |
getCheckpointPosition() |
java.lang.String |
getExpressionStringUntilCheckpoint()
Return the parsed expression until the last known, well formed position.
|
java.lang.String |
getMessage() |
int |
getTokenPointer() |
java.util.List<Token> |
getTokens() |
getExpressionString, getInserts, getMessageCode, getPosition
public CheckpointedStreamDefinitionException(java.lang.String expressionString, int textPosition, int tokenPointer, int checkpointPointer, java.util.List<Token> tokens, XDDSLMessages message, java.lang.Object... inserts)
expressionString
- the raw, untokenized text that was being parsedtextPosition
- the text offset where the error occurscheckpointPointer
- the token-index of the last known good tokentokenPointer
- the token-index of token where the error occuredtokens
- the list of tokens that make up expressionStringmessage
- the error messageinserts
- variables that may be inserted in the error messagepublic java.lang.String getMessage()
getMessage
in class StreamDefinitionException
public int getCheckpointPosition()
public java.lang.String getExpressionStringUntilCheckpoint()
public int getCheckpointPointer()
public java.util.List<Token> getTokens()
public int getTokenPointer()