|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object | +--java.lang.Throwable | +--java.lang.Exception | +--org.xquark.xml.xdbc.XMLDBCException
This class describes a XMLDBC (Xml DataBase Connectivity) exception for
various use in XMLDBC API.
All other specific XMLDBC exceptions extend this exception.
Field Summary | |
protected int |
errorCode
The error code of this exception. |
protected java.lang.Throwable |
exception
The underlying exception (or error) of this exception. |
static int |
NO_CODE
Error code for exception that have no associated error code. |
Constructor Summary | |
XMLDBCException(int code)
Constructor with error code. |
|
XMLDBCException(int code,
java.lang.String msg)
Constructor with error code and message. |
|
XMLDBCException(int code,
java.lang.String msg,
java.lang.Throwable exception)
Constructor with error code, message and underlying exception. |
|
XMLDBCException(java.lang.String msg)
Constructor with message. |
|
XMLDBCException(java.lang.String msg,
java.lang.Throwable exception)
Constructor with message and underlying exception. |
Method Summary | |
int |
getCode()
To get the code of this exception/error. |
java.lang.Throwable |
getException()
To get the exception of this exception/error. |
java.lang.String |
getMessage()
Returns the exception message, or the embedded exception message if none is present |
static void |
printError(java.lang.Throwable e,
boolean pst)
Print an error message processing embedded expeptions to the standard error output. |
static void |
printError(java.lang.Throwable e,
java.io.PrintStream ps,
boolean pst)
Print an error message processing embedded expeptions. |
Methods inherited from class java.lang.Throwable |
fillInStackTrace, getCause, getLocalizedMessage, getStackTrace, initCause, printStackTrace, printStackTrace, printStackTrace, setStackTrace, toString |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Field Detail |
public static final int NO_CODE
protected int errorCode
protected java.lang.Throwable exception
Constructor Detail |
public XMLDBCException(int code)
code
- the code featuring the kind of error (see constants).public XMLDBCException(java.lang.String msg)
msg
- a message to describe the exception.public XMLDBCException(int code, java.lang.String msg)
code
- the code featuring the kind of error (see constants).msg
- a message to describe the exception.public XMLDBCException(java.lang.String msg, java.lang.Throwable exception)
msg
- a message to describe the exception.exception
- the underlying exception (or error).public XMLDBCException(int code, java.lang.String msg, java.lang.Throwable exception)
code
- the code featuring the kind of error (see constants).msg
- a message to describe the exception.exception
- the underlying exception (or error).Method Detail |
public int getCode()
public java.lang.Throwable getException()
public java.lang.String getMessage()
getMessage
in class java.lang.Throwable
public static void printError(java.lang.Throwable e, boolean pst)
public static void printError(java.lang.Throwable e, java.io.PrintStream ps, boolean pst)
|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |