net.xqj.marklogic
Class XQueryException

java.lang.Object
  extended by java.lang.Throwable
      extended by java.lang.Exception
          extended by javax.xml.xquery.XQException
              extended by javax.xml.xquery.XQQueryException
                  extended by net.xqj.marklogic.exceptions.XQueryException
All Implemented Interfaces:
Serializable

public class XQueryException
extends XQQueryException

See Also:
Serialized Form

Constructor Summary
XQueryException(String message, String vendorCode, QName errorCode, int line, int column, int position, String moduleURI, XQSequence errorObject, XQStackTraceElement[] stackTrace, String xqueryVersion, String formatString, boolean retryable, String expr)
           
 
Method Summary
 String getExpresion()
          Gets the Expression or "expr" from the error response.
 String getFormatString()
          Gets the Format String from the error response.
 String getLocalizedMessage()
           
 StackTraceElement[] getStackTrace()
           
 String getXQueryVersion()
          Gets the XQuery version of the invoked adhoc query.
 boolean isRetryable()
          Gets the flag as to whether the query could be retried.
 void printStackTrace()
           
 void printStackTrace(PrintStream out)
           
 void printStackTrace(PrintWriter out)
           
 String toString()
           
 
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
 
Methods inherited from class java.lang.Throwable
fillInStackTrace, getCause, getMessage, initCause, setStackTrace
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

XQueryException

public XQueryException(String message,
                       String vendorCode,
                       QName errorCode,
                       int line,
                       int column,
                       int position,
                       String moduleURI,
                       XQSequence errorObject,
                       XQStackTraceElement[] stackTrace,
                       String xqueryVersion,
                       String formatString,
                       boolean retryable,
                       String expr)
Method Detail

getXQueryVersion

public String getXQueryVersion()
Gets the XQuery version of the invoked adhoc query.

Returns:
Gets the XQuery version of the invoked query.

getFormatString

public String getFormatString()
Gets the Format String from the error response.

Returns:
Gets the Format String from the error response.

isRetryable

public boolean isRetryable()
Gets the flag as to whether the query could be retried. true for retryable, false otherwise.

Returns:
Gets the flag as to whether the query could be retried. true for retryable, false otherwise.

getExpresion

public String getExpresion()
Gets the Expression or "expr" from the error response.

Returns:
Gets the Expression or "expr" from the error response.

getLocalizedMessage

public String getLocalizedMessage()
Overrides:
getLocalizedMessage in class Throwable

toString

public String toString()
Overrides:
toString in class Throwable

printStackTrace

public void printStackTrace()
Overrides:
printStackTrace in class Throwable

printStackTrace

public void printStackTrace(PrintStream out)
Overrides:
printStackTrace in class Throwable

printStackTrace

public void printStackTrace(PrintWriter out)
Overrides:
printStackTrace in class Throwable

getStackTrace

public StackTraceElement[] getStackTrace()
Overrides:
getStackTrace in class Throwable