public class OracleXMLSQLException
extends java.lang.RuntimeException
OracleXMLSQLException
class is the generic runtime exception thrown by the XSU.Constructor and Description |
---|
OracleXMLSQLException(java.lang.Exception parentE)
Constructor for the
OracleXMLSQLException object. |
OracleXMLSQLException(java.lang.Exception parentE, java.lang.String errorTag)
Constructor for the
OracleXMLSQLException object. |
OracleXMLSQLException(java.lang.String message)
Constructor for the
OracleXMLSQLException object. |
OracleXMLSQLException(java.lang.String message, java.lang.Exception parentE)
Constructor for the
OracleXMLSQLException object. |
OracleXMLSQLException(java.lang.String message, java.lang.Exception parentE, boolean combine)
Constructor for the
OracleXMLSQLException object. |
OracleXMLSQLException(java.lang.String message, java.lang.Exception parentE, java.lang.String errorTag)
Constructor for the
OracleXMLSQLException object. |
OracleXMLSQLException(java.lang.String message, int sqlErrorCode)
Constructor for the
OracleXMLSQLException object. |
OracleXMLSQLException(java.lang.String message, int sqlErrorCode, java.lang.String errorTag)
Constructor for the
OracleXMLSQLException object. |
OracleXMLSQLException(java.lang.String message, java.lang.String errorTag)
Constructor for the
OracleXMLSQLException object. |
Modifier and Type | Method and Description |
---|---|
int |
getErrorCode()
This function gets the SQL error code
|
java.lang.Exception |
getParentException()
Returns the original exception it if exists; otherwise, returns
null . |
java.lang.String |
getXMLErrorString()
Prints the XML error message and error tag name as a
String . |
java.lang.String |
getXMLSQLErrorString()
Prints the SQL error message and error parameters as a
String . |
void |
setErrorTag(java.lang.String errorTag)
Sets the error tag name that is subsequently used by
getXMLErrorString and getXMLSQLErrorString methods to generate XML error reports. |
public OracleXMLSQLException(java.lang.Exception parentE)
OracleXMLSQLException
object.parentE
- Parent exceptionpublic OracleXMLSQLException(java.lang.Exception parentE, java.lang.String errorTag)
OracleXMLSQLException
object.parentE
- Parent exceptionerrorTag
- Name of error Tagpublic OracleXMLSQLException(java.lang.String message, java.lang.Exception parentE, boolean combine)
OracleXMLSQLException
object.message
- The error message stringparentE
- Parent exceptioncombine
- combine the given message with the exception msg?public OracleXMLSQLException(java.lang.String message, java.lang.Exception parentE)
OracleXMLSQLException
object.message
- The error message stringparentE
- Parent exceptionpublic OracleXMLSQLException(java.lang.String message, java.lang.Exception parentE, java.lang.String errorTag)
OracleXMLSQLException
object.message
- The error message stringparentE
- Parent exceptionerrorTag
- The name of the error tagpublic OracleXMLSQLException(java.lang.String message)
OracleXMLSQLException
object.message
- The error message stringpublic OracleXMLSQLException(java.lang.String message, java.lang.String errorTag)
OracleXMLSQLException
object.message
- The error message stringerrorTag
- The name of the error tagpublic OracleXMLSQLException(java.lang.String message, int sqlErrorCode)
OracleXMLSQLException
object.message
- The error message stringsqlErrorCode
- The SQL error codepublic OracleXMLSQLException(java.lang.String message, int sqlErrorCode, java.lang.String errorTag)
OracleXMLSQLException
object.message
- The error message stringsqlErrorCode
- The SQL error codeerrorTag
- The name of the error tagpublic java.lang.String getXMLErrorString()
String
.public java.lang.String getXMLSQLErrorString()
String
.public java.lang.Exception getParentException()
null
.public void setErrorTag(java.lang.String errorTag)
getXMLErrorString
and getXMLSQLErrorString
methods to generate XML error reports.errorTag
- The name of the error tag.public int getErrorCode()