ch.ethz.mxquery.exceptions
Class MXQueryException
java.lang.Object
java.lang.Throwable
java.lang.Exception
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
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 |
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)
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