|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectjava.lang.Throwable
java.lang.Exception
javax.transaction.xa.XAException
org.firebirdsql.jca.FBXAException
public class FBXAException
Convenience exception that adds constructor taking message and error code together.
| Field Summary |
|---|
| Fields inherited from class javax.transaction.xa.XAException |
|---|
errorCode, XA_HEURCOM, XA_HEURHAZ, XA_HEURMIX, XA_HEURRB, XA_NOMIGRATE, XA_RBBASE, XA_RBCOMMFAIL, XA_RBDEADLOCK, XA_RBEND, XA_RBINTEGRITY, XA_RBOTHER, XA_RBPROTO, XA_RBROLLBACK, XA_RBTIMEOUT, XA_RBTRANSIENT, XA_RDONLY, XA_RETRY, XAER_ASYNC, XAER_DUPID, XAER_INVAL, XAER_NOTA, XAER_OUTSIDE, XAER_PROTO, XAER_RMERR, XAER_RMFAIL |
| Constructor Summary | |
|---|---|
FBXAException()
|
|
FBXAException(int errorCode)
Create a new instance of FBXAException based around
a specific error code. |
|
FBXAException(int errorCode,
Exception reason)
Create a new instance of FBXAException wrapped around
an underlying exception. |
|
FBXAException(String msg)
Create a new instance of FBXAException with a given
message. |
|
FBXAException(String msg,
int errorCode)
Create a new instance of FBXAException based around
a message and specific error code. |
|
| Method Summary | |
|---|---|
String |
getMessage()
Get message of this exception. |
void |
printStackTrace()
Print a stack trace for this exception to STDERR. |
void |
printStackTrace(PrintStream s)
Print a stack trace for this exception with a given PrintStream. |
void |
printStackTrace(PrintWriter s)
Print a stack trace for this exception with a given PrintWriter. |
| 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 |
| Constructor Detail |
|---|
public FBXAException()
public FBXAException(String msg)
FBXAException with a given
message.
msg - The string message for this exceptionpublic FBXAException(int errorCode)
FBXAException based around
a specific error code.
errorCode - The error code for this exception
public FBXAException(String msg,
int errorCode)
FBXAException based around
a message and specific error code.
msg - The string message for this exceptionerrorCode - The error code for this exception
public FBXAException(int errorCode,
Exception reason)
FBXAException wrapped around
an underlying exception.
errorCode - The error code for this exceptionreason - The underlying exception| Method Detail |
|---|
public String getMessage()
getMessage in class Throwablepublic void printStackTrace()
STDERR.
printStackTrace in class Throwablepublic void printStackTrace(PrintStream s)
PrintStream.
printStackTrace in class Throwables - The PrintStream to which the stack trace will
be writtenpublic void printStackTrace(PrintWriter s)
PrintWriter.
printStackTrace in class Throwables - The PrintWriter to which the stack trace will
be written
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||