com.marklogic.xdbc
Class XDBCException

java.lang.Object
  extended byjava.lang.Throwable
      extended byjava.lang.Exception
          extended bycom.marklogic.xdbc.XDBCException
All Implemented Interfaces:
Serializable
Direct Known Subclasses:
XDBCWarning, XDBCXQueryException

public class XDBCException
extends Exception

An XDBCException provides information on an exception that occurs during XDBC processing.

The information in the XDBCException includes:

See Also:
Serialized Form

Constructor Summary
XDBCException()
          Constructs an XDBCException.
XDBCException(String message)
          Constructs an XDBCException with a specified message.
XDBCException(String message, Throwable cause)
          Constructs an XDBCException with a specified message and cause.
 
Method Summary
 XDBCException getNextException()
          Retrieves the exception chained to this XDBCException.
 void setNextException(XDBCException ex)
          Link this XDBCException to a specified other XDBCException
 String toString()
          Returns a string representation of the object.
 
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

XDBCException

public XDBCException()
Constructs an XDBCException.


XDBCException

public XDBCException(String message)
Constructs an XDBCException with a specified message.

Parameters:
message - the string specifying the exception condition

XDBCException

public XDBCException(String message,
                     Throwable cause)
Constructs an XDBCException with a specified message and cause.

Parameters:
message - the string specifying the exception condition
cause - the throwable cause object for the exception
Method Detail

getNextException

public XDBCException getNextException()
Retrieves the exception chained to this XDBCException.

Returns:
the next XDBCException in this chain.

setNextException

public void setNextException(XDBCException ex)
Link this XDBCException to a specified other XDBCException

Parameters:
ex - the XDBCException to link this object to.

toString

public String toString()
Returns a string representation of the object.

Returns:
a string representation of the object.