MXQuery 0.6.0 API Documentation - Copyright 2006-2009 ETH Zurich

ch.ethz.mxquery.exceptions
Class MXQueryException

java.lang.Object
  extended by java.lang.Throwable
      extended by java.lang.Exception
          extended by ch.ethz.mxquery.exceptions.MXQueryException
All Implemented Interfaces:
java.io.Serializable
Direct Known Subclasses:
CFException, DynamicException, StaticException, TypeException

public class MXQueryException
extends java.lang.Exception

See Also:
Serialized Form

Constructor Summary
MXQueryException(java.lang.String code, java.lang.String message, QueryLocation location)
           
MXQueryException(java.lang.String code, java.lang.Throwable cause, java.lang.String message, QueryLocation location)
           
 
Method Summary
 java.lang.Throwable getCause()
           
 java.lang.String getErrorCode()
           
static java.lang.String getErrorPosition(java.lang.String query, QueryLocation loc)
           
 QueryLocation getLocation()
          Return the location in the query "text" where this exception originated"
 java.lang.String getMessage()
           
 java.lang.Throwable initCause(java.lang.Throwable cause)
           
static void printErrorPosition(java.lang.String query, QueryLocation loc)
           
 
Methods inherited from class java.lang.Throwable
fillInStackTrace, getLocalizedMessage, getStackTrace, printStackTrace, printStackTrace, printStackTrace, setStackTrace, toString
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

MXQueryException

public MXQueryException(java.lang.String code,
                        java.lang.Throwable cause,
                        java.lang.String message,
                        QueryLocation location)

MXQueryException

public MXQueryException(java.lang.String code,
                        java.lang.String message,
                        QueryLocation location)
Method Detail

getErrorCode

public java.lang.String getErrorCode()

getMessage

public java.lang.String getMessage()
Overrides:
getMessage in class java.lang.Throwable

getCause

public java.lang.Throwable getCause()
Overrides:
getCause in class java.lang.Throwable

initCause

public java.lang.Throwable initCause(java.lang.Throwable cause)
Overrides:
initCause in class java.lang.Throwable

getLocation

public QueryLocation getLocation()
Return the location in the query "text" where this exception originated"

Returns:
The QueryLocation object representing the location

printErrorPosition

public static void printErrorPosition(java.lang.String query,
                                      QueryLocation loc)

getErrorPosition

public static java.lang.String getErrorPosition(java.lang.String query,
                                                QueryLocation loc)

MXQuery 0.6.0 API Documentation - Copyright 2006-2009 ETH Zurich

MXQuery 0.6.0 API Documentation - Copyright 2006-2009 ETH Zurich