|
||||||||||
| 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.xdbc.XDBCException
com.marklogic.xdbc.XDBCXQueryException
An XDBCXQueryException provides information on an XQuery exception that occurs during XDBC processing.
The information in the XDBCException includes:
| Nested Class Summary | |
static class |
XDBCXQueryException.Frame
An XQuery evaluator stack frame. |
static class |
XDBCXQueryException.Variable
An XQuery evaluator variable binding. |
| Constructor Summary | |
XDBCXQueryException(String code,
String message,
String formatString,
boolean retryable,
String[] data,
XDBCXQueryException.Frame[] stack)
Constructs an XDBCXQueryException |
|
XDBCXQueryException(String code,
String message,
String formatString,
boolean retryable,
String expression,
String[] data,
XDBCXQueryException.Frame[] stack)
Constructs an XDBCXQueryException |
|
| Method Summary | |
void |
dump()
Prints the code, format string, and expression for the exception. |
String |
getCode()
Returns the symbolic exception code. |
String[] |
getData()
Returns the exception data. |
String |
getExpression()
Returns the expression which caused the exception. |
String |
getFormatString()
Returns the exception format string. |
boolean |
getRetryable()
Returns true if the exception is retryable. |
XDBCXQueryException.Frame[] |
getStack()
Returns the XQuery Evaluator stack trace for this XDBCException. |
String |
toString()
Returns a string representation of the object. |
| Methods inherited from class com.marklogic.xdbc.XDBCException |
getNextException, setNextException |
| 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 XDBCXQueryException(String code,
String message,
String formatString,
boolean retryable,
String[] data,
XDBCXQueryException.Frame[] stack)
code - the symbolic exception codemessage - the exception messageformatString - the exception format stringretryable - retrying the operation may succeeddata - the exception datastack - the xquery evaluator stack trace
public XDBCXQueryException(String code,
String message,
String formatString,
boolean retryable,
String expression,
String[] data,
XDBCXQueryException.Frame[] stack)
code - the symbolic exception codemessage - the exception messageformatString - the exception format stringretryable - retrying the operation may succeedexpression - the expression which caused the exceptiondata - the exception datastack - the xquery evaluator stack trace| Method Detail |
public String getCode()
public String getFormatString()
public boolean getRetryable()
An operation that results in a retryable exeption may succeed upon retrying. For example, certain XDMP-DEADLOCK exceptions might occur while a document is locked, but the document might not be locked the next time the operation is run.
public String getExpression()
public String[] getData()
public XDBCXQueryException.Frame[] getStack()
Note that this is the server-side stack trace from evaluating the XQuery, NOT the client-side Java runtime stack trace.
public String toString()
toString in class XDBCExceptionpublic void dump()
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||