Package com.igormaznitsa.jbbp.exceptions
Class JBBPCompilationException
java.lang.Object
java.lang.Throwable
java.lang.Exception
java.lang.RuntimeException
com.igormaznitsa.jbbp.exceptions.JBBPException
com.igormaznitsa.jbbp.exceptions.JBBPCompilationException
- All Implemented Interfaces:
Serializable
- Direct Known Subclasses:
JBBPParsingException,JBBPTokenizerException
The Exception can be thrown during compilation phase and may provide the problematic token.
- Since:
- 1.0
- See Also:
-
Constructor Summary
ConstructorsConstructorDescriptionA Constructor.JBBPCompilationException(String text, JBBPToken token) A Constructor.JBBPCompilationException(String text, JBBPToken token, Throwable cause) A Constructor. -
Method Summary
Methods inherited from class java.lang.Throwable
addSuppressed, fillInStackTrace, getCause, getLocalizedMessage, getMessage, getStackTrace, getSuppressed, initCause, printStackTrace, printStackTrace, printStackTrace, setStackTrace, toString
-
Constructor Details
-
JBBPCompilationException
A Constructor.- Parameters:
text- the text of message for the exception.
-
JBBPCompilationException
A Constructor.- Parameters:
text- the text of message for the exception.token- the problematic token, it can be null.
-
JBBPCompilationException
A Constructor.- Parameters:
text- the text of message for the exceptiontoken- the problematic token for the exception, it can be nullcause- the root cause for the exception
-
-
Method Details
-
getToken
Get the problematic token.- Returns:
- the problematic token or null if the token is undefined
-