com.ddtek.xquery3
Class XQWarning

java.lang.Object
  extended byjava.lang.Throwable
      extended byjava.lang.Exception
          extended bycom.ddtek.xquery3.XQException
              extended bycom.ddtek.xquery3.XQWarning
All Implemented Interfaces:
Serializable

public class XQWarning
extends XQException

This class represents an XQuery warning.

See Also:
Serialized Form

Constructor Summary
XQWarning(String message)
          Constructs a warning object indicating the underlying exception and vendor code.
XQWarning(String message, Throwable cause, String vendorcode, XQWarning nextWarning)
          Constructs a warning object indicating the underlying exception and vendor code.
 
Method Summary
 XQWarning getNextWarning()
          Get the next warning in the chain.
 void setNextWarning(XQWarning nextWarning)
          Adds a new warning to the chain of warnings.
 
Methods inherited from class com.ddtek.xquery3.XQException
getNextException, getVendorCode, setNextException
 
Methods inherited from class java.lang.Throwable
fillInStackTrace, getCause, getLocalizedMessage, getMessage, getStackTrace, initCause, printStackTrace, printStackTrace, printStackTrace, setStackTrace, toString
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

XQWarning

public XQWarning(String message)
Constructs a warning object indicating the underlying exception and vendor code.

Parameters:
message - a formatted warning message string

XQWarning

public XQWarning(String message,
                 Throwable cause,
                 String vendorcode,
                 XQWarning nextWarning)
Constructs a warning object indicating the underlying exception and vendor code.

Parameters:
message - a formatted warning message string
cause - the underlying exception if any, that caused this warning
vendorcode - a vendor-specific string identifying the cause of the warning
nextWarning - any secondary warning that is also being thrown
Method Detail

setNextWarning

public void setNextWarning(XQWarning nextWarning)
Adds a new warning to the chain of warnings.

Parameters:
nextWarning - the next warning to be added to the chain of warnings

getNextWarning

public XQWarning getNextWarning()
Get the next warning in the chain.

Returns:
the next warning in the chain of warnings