Package org.geotools.filter.text.cql2
Class CQLException
- Object
-
- Throwable
-
- Exception
-
- ParseException
-
- 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
-
-
Field Summary
Fields Modifier and Type Field Description protected Throwable
cause
-
Fields inherited from class ParseException
eol, expectedTokenSequences, specialConstructor, tokenImage
-
-
Constructor Summary
Constructors Constructor Description CQLException(String message)
New instance of CQLExceptionCQLException(String message, String cqlSource)
New instance of CQLExceptionCQLException(String message, IToken token, String cqlSource)
New instance of CQLExceptionCQLException(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 causeString
getMessage()
Returns the exception messageString
getSyntaxError()
Returns the syntax error presents in the last sequence of characters analyzed.-
Methods inherited from class ParseException
add_escapes
-
Methods inherited from class Throwable
addSuppressed, fillInStackTrace, getLocalizedMessage, getStackTrace, getSuppressed, initCause, printStackTrace, printStackTrace, printStackTrace, setStackTrace, toString
-
-
-
-
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 descriptiontoken
- current tokencause
- the causecqlSource
- string analyzed
-
CQLException
public CQLException(String message, IToken token, String cqlSource)
New instance of CQLException- Parameters:
message
- exception descriptiontoken
- current tokencqlSource
- analyzed string
-
CQLException
public CQLException(String message)
New instance of CQLException
-
-
Method Detail
-
getCause
public Throwable getCause()
Returns the cause
-
getMessage
public String getMessage()
Returns the exception message- Overrides:
getMessage
in classParseException
- Returns:
- a message
-
getSyntaxError
public String getSyntaxError()
Returns the syntax error presents in the last sequence of characters analyzed.- Returns:
- the syntax error
-
-