com.ddtek.xquery3
Class XQCancelledException

java.lang.Object
  extended byjava.lang.Throwable
      extended byjava.lang.Exception
          extended bycom.ddtek.xquery3.XQException
              extended bycom.ddtek.xquery3.XQQueryException
                  extended bycom.ddtek.xquery3.XQCancelledException
All Implemented Interfaces:
Serializable

public class XQCancelledException
extends XQQueryException

XQCancelledException is an exception to indicate that the current XQuery processing is cancelled by the application through a cancel() request. This exception allows an application to easily differentiate between a user's cancellation of the query from a general execution failure.

See Also:
Serialized Form

Constructor Summary
XQCancelledException(String message, Throwable cause, String vendorCode, XQException nextException, String errorCode, String expr, XQItem errorItem, int lineNumber, int position, XQStackTraceElement[] trace)
          Construct an XQCancelledException exception object.
 
Methods inherited from class com.ddtek.xquery3.XQQueryException
getColumnNumber, getErrorCode, getErrorObject, getLineNumber, getModuleURI, getPosition, getQueryStackTrace
 
Methods inherited from class com.ddtek.xquery3.XQException
getNextException, getVendorCode, setNextException
 
Methods inherited from class java.lang.Throwable
fillInStackTrace, getCause, getLocalizedMessage, getMessage, getStackTrace, initCause, printStackTrace, printStackTrace, printStackTrace, setStackTrace, toString
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

XQCancelledException

public XQCancelledException(String message,
                            Throwable cause,
                            String vendorCode,
                            XQException nextException,
                            String errorCode,
                            String expr,
                            XQItem errorItem,
                            int lineNumber,
                            int position,
                            XQStackTraceElement[] trace)
Construct an XQCancelledException exception object.

Parameters:
errorCode - the error condition as specified in Appendix F, XQuery 1.0: An XML Query language
lineNumber - the line number in the original query string where this exception occurred
position - the character offset in the original query string where this exception occurred
expr - the simple expression that caused the exception, if available
errorItem - the item passed to fn:error() if this exception was caused by an fn:error
trace - the XQuery stack trace when the exception occurred, if available