Class LexerFailureException
java.lang.Object
java.lang.Throwable
java.lang.Exception
java.lang.RuntimeException
com.aquima.interactions.foundation.exception.SysException
com.aquima.interactions.expressions.LexerFailureException
- All Implemented Interfaces:
Serializable
This exception is thrown when the lexical analysis failed.
- Since:
- 6.0
- Author:
- F. van der Meer
- See Also:
-
Constructor Summary
ConstructorsConstructorDescriptionLexerFailureException
(Position position, Object token) Construct a parse failure exception at the specified character position. -
Method Summary
Modifier and TypeMethodDescriptionint
This method returns the offset of the position.Returns the position.getToken()
This method returns the token for which the exception occurred.Methods inherited from class com.aquima.interactions.foundation.exception.SysException
raise, raise
Methods inherited from class java.lang.Throwable
addSuppressed, fillInStackTrace, getCause, getLocalizedMessage, getMessage, getStackTrace, getSuppressed, initCause, printStackTrace, printStackTrace, printStackTrace, setStackTrace, toString
-
Constructor Details
-
LexerFailureException
Construct a parse failure exception at the specified character position. Optionally the token which caused the error can be passed as well.- Parameters:
position
- The character position of the expression where the exception occurred ( not byte position )token
- The token which caused the failure.
-
-
Method Details
-
getPosition
Returns the position.- Returns:
- The position which designates the failure position.
-
getOffset
public int getOffset()This method returns the offset of the position.- Returns:
- the offset of the position.
-
getToken
This method returns the token for which the exception occurred.- Returns:
- The object token which can be null when it was not known.
-