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:
    Serialized Form
    • Constructor Summary

      Constructors 
      Constructor Description
      CQLException​(String message)
      New instance of CQLException
      CQLException​(String message, String cqlSource)
      New instance of CQLException
      CQLException​(String message, IToken token, String cqlSource)
      New instance of CQLException
      CQLException​(String message, IToken token, Throwable cause, String cqlSource)
      New instance of CQLException
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      Throwable getCause()
      Returns the cause
      String getMessage()
      Returns the exception message
      String getSyntaxError()
      Returns the syntax error presents in the last sequence of characters analyzed.
      • Methods inherited from class Throwable

        addSuppressed, fillInStackTrace, getLocalizedMessage, getStackTrace, getSuppressed, initCause, printStackTrace, printStackTrace, printStackTrace, setStackTrace, toString
      • Methods inherited from class Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
    • Field Detail

      • cause

        protected Throwable cause
    • Constructor Detail

      • 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 Detail

      • 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 ParseException
        Returns:
        a message
      • getSyntaxError

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