public abstract class QueryException extends RequestServerException
isRetryable(),
RetryableQueryException,
Serialized Form| Constructor and Description |
|---|
QueryException(Request request,
java.lang.String code,
java.lang.String w3cCode,
java.lang.String message,
java.lang.String formatString,
java.lang.String expr,
boolean retryable,
java.lang.String[] data,
QueryStackFrame[] stack)
Constructs an XQueryException
|
| Modifier and Type | Method and Description |
|---|---|
java.lang.String |
getCode()
Returns the server error code for this XQuery exception.
|
java.lang.String[] |
getData() |
java.lang.String |
getFormatString() |
QueryStackFrame[] |
getStack()
Get an array of
QueryStackFrame objects that represent the query
stack frame returned by the server. |
java.lang.String |
getW3CCode()
Returns the error code defined by the WC3 XQuery spec that corresponds to this exception, if
any.
|
boolean |
isRetryable()
Returns true if the server indicates that this request might succeeed if
resubmitted.
|
java.lang.String |
toString()
Returns a string representation (possibly multiple lines) of the error
message and stack frame.
|
appendRequestInfo, getRequestpublic QueryException(Request request, java.lang.String code, java.lang.String w3cCode, java.lang.String message, java.lang.String formatString, java.lang.String expr, boolean retryable, java.lang.String[] data, QueryStackFrame[] stack)
request - The Request object to which this exception appliescode - the symbolic exception codew3cCode - the exception code defined by the XQuery spec, if anymessage - 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 tracepublic java.lang.String getCode()
public java.lang.String getW3CCode()
public java.lang.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 java.lang.String[] getData()
public QueryStackFrame[] getStack()
QueryStackFrame objects that represent the query
stack frame returned by the server.public java.lang.String toString()
toString in class RequestExceptionCopyright © 2017 MarkLogic Corporation. All Rights Reserved.
Complete online documentation for MarkLogic Server, XQuery and related components may be found at developer.marklogic.com