|
XCC/J 6.0-3 | ||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectjava.lang.Throwable
java.lang.Exception
com.marklogic.xcc.exceptions.XccException
com.marklogic.xcc.exceptions.RequestException
com.marklogic.xcc.exceptions.RequestServerException
com.marklogic.xcc.exceptions.XQueryException
public class XQueryException
A server exception resulting from an error encountered while evaluating XQuery. Note that some such exceptions are retryable.
isRetryable(),
RetryableXQueryException,
Serialized Form| Constructor Summary | |
|---|---|
XQueryException(Request request,
String code,
String w3cCode,
String xqueryVersion,
String message,
String formatString,
String expr,
boolean retryable,
String[] data,
XQueryStackFrame[] stack)
Constructs an XQueryException |
|
| Method Summary | |
|---|---|
String |
getCode()
Returns the server error code for this XQuery exception. |
String[] |
getData()
|
String |
getFormatString()
|
XQueryStackFrame[] |
getStack()
Get an array of XQueryStackFrame objects that represent the XQuery stack frame
returned by the server. |
String |
getW3CCode()
Returns the error code defined by the WC3 XQuery spec that corresponds to this exception, if any. |
String |
getXQueryVersion()
Returns the XQuery version (0.9-ml, 1.0-ml or 1.0) of the module that threw the exception. |
boolean |
isRetryable()
Returns true if the server indicates that this request might succeeed if resubmitted. |
String |
toString()
Returns a string representation (possibly multiline) of the XQuery error message and stack frame. |
| Methods inherited from class com.marklogic.xcc.exceptions.RequestException |
|---|
appendRequestInfo, getRequest |
| Methods inherited from class java.lang.Throwable |
|---|
fillInStackTrace, getCause, getLocalizedMessage, getMessage, getStackTrace, initCause, printStackTrace, printStackTrace, printStackTrace, setStackTrace |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
| Constructor Detail |
|---|
public XQueryException(Request request,
String code,
String w3cCode,
String xqueryVersion,
String message,
String formatString,
String expr,
boolean retryable,
String[] data,
XQueryStackFrame[] stack)
request - The Request object to which this exception appliescode - the symbolic exception codew3cCode - the exception code defined by the XQuery spec, if anyxqueryVersion - the XQuery version of the module that threw an exceptionmessage - the exception messageformatString - the exception format stringexpr - The expression that caused the exception, if applicableretryable - retrying the operation may succeeddata - the exception datastack - the xquery evaluator stack trace| Method Detail |
|---|
public String getCode()
public String getW3CCode()
public String getXQueryVersion()
public String getFormatString()
public boolean isRetryable()
Returns true if the server indicates that this request might succeeed if resubmitted.
Note that if method returns true, then this exception will also be an instance of
RetryableXQueryException.
Note also that retryable exceptions will be automatically resubmitted if the
RequestOptions associated with the request indicate to do so.
public String[] getData()
public XQueryStackFrame[] getStack()
XQueryStackFrame objects that represent the XQuery stack frame
returned by the server.
public String toString()
toString in class RequestException
|
XCC/J 6.0-3 | ||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
Complete online documentation for MarkLogic Server, XQuery and related components may be found at developer.marklogic.com