Class JBBPCompilationException

All Implemented Interfaces:
Serializable
Direct Known Subclasses:
JBBPParsingException, JBBPTokenizerException

public class JBBPCompilationException extends JBBPException
The Exception can be thrown during compilation phase and may provide the problematic token.
Since:
1.0
See Also:
  • Constructor Details

    • JBBPCompilationException

      public JBBPCompilationException(String text)
      A Constructor.
      Parameters:
      text - the text of message for the exception.
    • JBBPCompilationException

      public JBBPCompilationException(String text, JBBPToken token)
      A Constructor.
      Parameters:
      text - the text of message for the exception.
      token - the problematic token, it can be null.
    • JBBPCompilationException

      public JBBPCompilationException(String text, JBBPToken token, Throwable cause)
      A Constructor.
      Parameters:
      text - the text of message for the exception
      token - the problematic token for the exception, it can be null
      cause - the root cause for the exception
  • Method Details

    • getToken

      public JBBPToken getToken()
      Get the problematic token.
      Returns:
      the problematic token or null if the token is undefined