public abstract class QueryException extends RequestServerException
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 isRetryable,
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.
|
java.lang.String |
toString()
Returns a string representation (possibly
multiple lines) of the error message and stack frame.
|
appendRequestInfo,
getRequest,
isRetryable,
isRetryAdvised
public QueryException(Request request, java.lang.String code, java.lang.String w3cCode, java.lang.String message, java.lang.String formatString, java.lang.String expr, boolean isRetryable, 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 applicableisRetryable
- 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 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 RequestException
Copyright © 2024 MarkLogic
Corporation
Complete online documentation for MarkLogic Server,
XQuery and related components may
be found at
developer.marklogic.com