Class CQLException

All Implemented Interfaces:
Serializable

public class CQLException extends ParseException
This exception is produced when the cql input string has syntax errors.
Since:
2.4
Author:
Mauricio Pazos (Axios Engineering)
See Also:
  • Field Details

  • Constructor Details

    • CQLException

      public CQLException(String message, IToken token, Throwable cause, String cqlSource)
      New instance of CQLException
      Parameters:
      message - exception description
      token - current token
      cause - the cause
      cqlSource - string analyzed
    • CQLException

      public CQLException(String message, IToken token, String cqlSource)
      New instance of CQLException
      Parameters:
      message - exception description
      token - current token
      cqlSource - analyzed string
    • CQLException

      public CQLException(String message, String cqlSource)
      New instance of CQLException
    • CQLException

      public CQLException(String message)
      New instance of CQLException
  • Method Details

    • getCause

      public Throwable getCause()
      Returns the cause
      Overrides:
      getCause in class Throwable
      Returns:
      the cause
    • getMessage

      public String getMessage()
      Returns the exception message
      Overrides:
      getMessage in class Throwable
      Returns:
      a message
    • getSyntaxError

      public String getSyntaxError()
      Returns the syntax error presents in the last sequence of characters analyzed.
      Returns:
      the syntax error