com.marklogic.xdbc
Class XDBCWarning

java.lang.Object
  extended byjava.lang.Throwable
      extended byjava.lang.Exception
          extended bycom.marklogic.xdbc.XDBCException
              extended bycom.marklogic.xdbc.XDBCWarning
All Implemented Interfaces:
Serializable

public class XDBCWarning
extends XDBCException

An XDBCWarning provides information on database access warnings and other non-fatal runtime situations.

Warnings are silently chained together in the order in which they are reported by the XDBC driver.

It is the responsibility of the application to check and handle XDBCWarnings if it is interested.

See Also:
Serialized Form

Constructor Summary
XDBCWarning()
          Constructs an XDBCWarning
XDBCWarning(String message)
          Constructs an XDBCWarning with a specified message.
XDBCWarning(String message, Throwable cause)
          Constructs an XDBCWarning with a specified message and cause.
 
Method Summary
 XDBCWarning getNextWarning()
          Retrieves the warning chained to this XDBCWarning.
 void setNextWarning(XDBCWarning ex)
          Links this XDBCWarning to a specified XDBCWarning
 
Methods inherited from class com.marklogic.xdbc.XDBCException
getNextException, setNextException, toString
 
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

XDBCWarning

public XDBCWarning()
Constructs an XDBCWarning


XDBCWarning

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

Parameters:
message - the string specifying the exception condition

XDBCWarning

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

Parameters:
message - the string specifying the warningcondition
cause - the throwable cause object for the warning.
Method Detail

getNextWarning

public XDBCWarning getNextWarning()
Retrieves the warning chained to this XDBCWarning.

Returns:
the next XDBCWarning object in the chain.

setNextWarning

public void setNextWarning(XDBCWarning ex)
Links this XDBCWarning to a specified XDBCWarning

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