org.geotools.filter.text.cql2
Class CQLException

java.lang.Object
  extended by java.lang.Throwable
      extended by java.lang.Exception
          extended by org.geotools.filter.text.generated.parsers.ParseException
              extended by org.geotools.filter.text.cql2.CQLException
All Implemented Interfaces:
java.io.Serializable

public class CQLException
extends org.geotools.filter.text.generated.parsers.ParseException

This exception is produced when the cql input string has syntax errors.

Since:
2.4
Version:
$Id: CQLException.java 34126 2009-10-12 06:35:18Z mbedward $
Author:
Mauricio Pazos (Axios Engineering)
See Also:
Serialized Form

Field Summary
protected  java.lang.Throwable cause
           
 
Fields inherited from class org.geotools.filter.text.generated.parsers.ParseException
eol, expectedTokenSequences, tokenImage
 
Constructor Summary
CQLException(java.lang.String message)
          New instance of CQLException
CQLException(java.lang.String message, IToken token, java.lang.String cqlSource)
          New instance of CQLException
CQLException(java.lang.String message, IToken token, java.lang.Throwable cause, java.lang.String cqlSource)
          New instance of CQLException
CQLException(java.lang.String message, java.lang.String cqlSource)
          New instance of CQLException
 
Method Summary
 java.lang.Throwable getCause()
          Returns the cause
 java.lang.String getMessage()
          Returns the exception message
 java.lang.String getSyntaxError()
          Returns the syntax error presents in the last sequence of characters analyzed.
 
Methods inherited from class java.lang.Throwable
fillInStackTrace, getLocalizedMessage, getStackTrace, initCause, printStackTrace, printStackTrace, printStackTrace, setStackTrace, toString
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Field Detail

cause

protected java.lang.Throwable cause
Constructor Detail

CQLException

public CQLException(java.lang.String message,
                    IToken token,
                    java.lang.Throwable cause,
                    java.lang.String cqlSource)
New instance of CQLException

Parameters:
message - exception description
token - current token
cause - the cause
cqlSource - string analyzed

CQLException

public CQLException(java.lang.String message,
                    IToken token,
                    java.lang.String cqlSource)
New instance of CQLException

Parameters:
message - exception description
token - current token
cqlSource - analyzed string

CQLException

public CQLException(java.lang.String message,
                    java.lang.String cqlSource)
New instance of CQLException

Parameters:
message -
cqlSource -

CQLException

public CQLException(java.lang.String message)
New instance of CQLException

Parameters:
message -
Method Detail

getCause

public java.lang.Throwable getCause()
Returns the cause

Overrides:
getCause in class java.lang.Throwable
Returns:
the cause

getMessage

public java.lang.String getMessage()
Returns the exception message

Overrides:
getMessage in class java.lang.Throwable
Returns:
a message

getSyntaxError

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

Returns:
the syntax error


Copyright © 1996-2010 Geotools. All Rights Reserved.