oracle.xquery
Class XQException

java.lang.Object
  |
  +--java.lang.Throwable
        |
        +--java.lang.Exception
              |
              +--java.lang.RuntimeException
                    |
                    +--oracle.xquery.XQException
All Implemented Interfaces:
java.io.Serializable

public class XQException
extends java.lang.RuntimeException

See Also:
Serialized Form

Constructor Summary
XQException()
           
XQException(java.lang.Exception e)
           
XQException(java.lang.Exception e, java.lang.String errorTagName)
           
XQException(java.lang.String message)
           
XQException(java.lang.String message, java.lang.Exception e)
           
XQException(java.lang.String message, java.lang.Exception e, java.lang.String errorTagName)
           
XQException(java.lang.String message, int errorCode)
           
XQException(java.lang.String message, int errorCode, java.lang.String errorTagName)
           
XQException(java.lang.String message, java.lang.String errorTagName)
           
 
Method Summary
 int getErrorCode()
           
 java.lang.Exception getParentException()
          returns the original exception, if there was one; otherwise, it returns null
 java.lang.String getXMLErrorString()
          prints the XML error string with the given error tag name
 java.lang.String getXMLSQLErrorString()
          prints the SQL parameters as well in the error message
 void setErrorTag(java.lang.String tagName)
          Sets the error tag name which is then used by getXMLErrorString and getXMLSQLErrorString, to generate xml error reports
 
Methods inherited from class java.lang.Throwable
fillInStackTrace, getLocalizedMessage, getMessage, printStackTrace, printStackTrace, printStackTrace, toString
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

XQException

public XQException(java.lang.Exception e)

XQException

public XQException(java.lang.Exception e,
                   java.lang.String errorTagName)

XQException

public XQException(java.lang.String message,
                   java.lang.Exception e)

XQException

public XQException(java.lang.String message,
                   java.lang.Exception e,
                   java.lang.String errorTagName)

XQException

public XQException(java.lang.String message)

XQException

public XQException()

XQException

public XQException(java.lang.String message,
                   java.lang.String errorTagName)

XQException

public XQException(java.lang.String message,
                   int errorCode)

XQException

public XQException(java.lang.String message,
                   int errorCode,
                   java.lang.String errorTagName)
Method Detail

getXMLErrorString

public java.lang.String getXMLErrorString()
prints the XML error string with the given error tag name

getXMLSQLErrorString

public java.lang.String getXMLSQLErrorString()
prints the SQL parameters as well in the error message

getParentException

public java.lang.Exception getParentException()
returns the original exception, if there was one; otherwise, it returns null

setErrorTag

public void setErrorTag(java.lang.String tagName)
Sets the error tag name which is then used by getXMLErrorString and getXMLSQLErrorString, to generate xml error reports

getErrorCode

public int getErrorCode()