org.geotools.filter.text.cql2
Class CQLException

Object
  extended by Throwable
      extended by Exception
          extended by ParseException
              extended by CQLException
All Implemented Interfaces:
Serializable
Direct Known Subclasses:
FilterBuilderException

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
protected  Throwable cause
           
 
Fields inherited from class ParseException
eol, expectedTokenSequences, specialConstructor, tokenImage
 
Constructor Summary
CQLException(String message)
          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
CQLException(String message, String cqlSource)
          New instance of CQLException
 
Method Summary
 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 ParseException
add_escapes
 
Methods inherited from class Throwable
fillInStackTrace, getLocalizedMessage, getStackTrace, 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

Parameters:
message -
cqlSource -

CQLException

public CQLException(String message)
New instance of CQLException

Parameters:
message -
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


Copyright © 1996-2009 Geotools. All Rights Reserved.