|
||||||||||
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 |
LOAD_TOO_HIGH
Error code for server with too high a load |
static int |
NO_CODE
Error code for exception that have no associated error code. |
static int |
PERMISSION_DENIED
Error code for illegal attempt to do something on data source |
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 |
void |
printStackTrace()
|
void |
printStackTrace(java.io.PrintStream ps)
|
void |
printStackTrace(java.io.PrintWriter pw)
|
Methods inherited from class java.lang.Throwable |
fillInStackTrace, getCause, getLocalizedMessage, getStackTrace, initCause, 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
public static final int LOAD_TOO_HIGH
public static final int PERMISSION_DENIED
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 void printStackTrace()
printStackTrace
in class java.lang.Throwable
public void printStackTrace(java.io.PrintWriter pw)
printStackTrace
in class java.lang.Throwable
public void printStackTrace(java.io.PrintStream ps)
printStackTrace
in class java.lang.Throwable
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |