Package javax.xml.xquery
Class XQCancelledException
- java.lang.Object
-
- java.lang.Throwable
-
- java.lang.Exception
-
- javax.xml.xquery.XQException
-
- javax.xml.xquery.XQQueryException
-
- javax.xml.xquery.XQCancelledException
-
- All Implemented Interfaces:
java.io.Serializable
public class XQCancelledException extends XQQueryException
XQCancelledExceptionis an exception to indicate that the current XQuery processing is cancelled by the application through acancel()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
Constructors Constructor Description XQCancelledException(java.lang.String message, java.lang.String vendorCode, javax.xml.namespace.QName errorCode, int line, int column, int position, java.lang.String moduleURI, XQSequence errorObject, XQStackTraceElement[] stackTrace)Constructs anXQCancelledExceptionobject with a given message, vendor code, error code, line number, column number, position, module URI, error object, and stack trace.
-
Method Summary
-
Methods inherited from class javax.xml.xquery.XQQueryException
getColumnNumber, getErrorCode, getErrorObject, getLineNumber, getModuleURI, getPosition, getQueryStackTrace
-
Methods inherited from class javax.xml.xquery.XQException
getNextException, getVendorCode, setNextException
-
-
-
-
Constructor Detail
-
XQCancelledException
public XQCancelledException(java.lang.String message, java.lang.String vendorCode, javax.xml.namespace.QName errorCode, int line, int column, int position, java.lang.String moduleURI, XQSequence errorObject, XQStackTraceElement[] stackTrace)Constructs anXQCancelledExceptionobject with a given message, vendor code, error code, line number, column number, position, module URI, error object, and stack trace.- Parameters:
message- the description of the error.nullindicates that the message string is non existantvendorCode- a vendor-specific string identifying the error.nullindicates there is no vendor code or it is unknownerrorCode-QNamewhich identifies the error according to the standard as described in Appendix F, XQuery 1.0: An XML Query language, Appendix C, XQuery 1.0 and XPath 2.0 Functions and Operators, and its associated specifications; implementation-defined errors may be raised
line- the line number in the query string where the error occured. Line numbering starts at1.-1if unknowncolumn- the column number in the query string where the error occured. Column numbering starts at1.-1if unknownposition- the position in the query string where the error occured. This is a0based position.-1if unknownmoduleURI- the module URI of the module in which the error occurred.nullwhen it is the main module or when the module is unknownerrorObject- anXQSequencerepresenting the error object passed tofn:error().nullif this error was not triggered byfn:error()or when the error object is not availablestackTrace- the XQuery stack trace where the error occurred.nullif not available
-
-