Package org.firebirdsql.jca
Class FBXAException
- java.lang.Object
- 
- java.lang.Throwable
- 
- java.lang.Exception
- 
- javax.transaction.xa.XAException
- 
- org.firebirdsql.jca.FBXAException
 
 
 
 
- 
- All Implemented Interfaces:
- java.io.Serializable
 
 public class FBXAException extends javax.transaction.xa.XAExceptionConvenience exception that adds constructor taking message and error code together.- Author:
- Roman Rokytskyy
- See Also:
- Serialized Form
 
- 
- 
Field Summary- 
Fields inherited from class javax.transaction.xa.XAExceptionerrorCode, 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 SummaryConstructors Constructor Description FBXAException()FBXAException(int errorCode)Create a new instance ofFBXAExceptionbased around a specific error code.FBXAException(int errorCode, java.lang.Exception reason)Create a new instance ofFBXAExceptionwrapped around an underlying exception.FBXAException(java.lang.String msg)Create a new instance ofFBXAExceptionwith a given message.FBXAException(java.lang.String msg, int errorCode)Create a new instance ofFBXAExceptionbased around a message and specific error code.FBXAException(java.lang.String msg, int errorCode, java.lang.Exception reason)Create a new instance ofFBXAExceptionbased around a message and with an underlying exception.
 - 
Method SummaryAll Methods Instance Methods Concrete Methods Modifier and Type Method Description java.lang.StringgetMessage()Get message of this exception.voidprintStackTrace()Print a stack trace for this exception toSTDERR.voidprintStackTrace(java.io.PrintStream s)Print a stack trace for this exception with a givenPrintStream.voidprintStackTrace(java.io.PrintWriter s)Print a stack trace for this exception with a givenPrintWriter.
 
- 
- 
- 
Constructor Detail- 
FBXAExceptionpublic FBXAException() 
 - 
FBXAExceptionpublic FBXAException(java.lang.String msg) Create a new instance ofFBXAExceptionwith a given message.- Parameters:
- msg- The string message for this exception
 
 - 
FBXAExceptionpublic FBXAException(int errorCode) Create a new instance ofFBXAExceptionbased around a specific error code.- Parameters:
- errorCode- The error code for this exception
 
 - 
FBXAExceptionpublic FBXAException(java.lang.String msg, int errorCode)Create a new instance ofFBXAExceptionbased around a message and specific error code.- Parameters:
- msg- The string message for this exception
- errorCode- The error code for this exception
 
 - 
FBXAExceptionpublic FBXAException(int errorCode, java.lang.Exception reason)Create a new instance ofFBXAExceptionwrapped around an underlying exception.- Parameters:
- errorCode- The error code for this exception
- reason- The underlying exception
 
 - 
FBXAExceptionpublic FBXAException(java.lang.String msg, int errorCode, java.lang.Exception reason)Create a new instance ofFBXAExceptionbased around a message and with an underlying exception.- Parameters:
- msg- The string message for this exception
- errorCode- The error code for this exception
- reason- The underlying exception
 
 
- 
 - 
Method Detail- 
getMessagepublic java.lang.String getMessage() Get message of this exception.- Overrides:
- getMessagein class- java.lang.Throwable
- Returns:
- combined message of this exception and original exception.
 
 - 
printStackTracepublic void printStackTrace() Print a stack trace for this exception toSTDERR.- Overrides:
- printStackTracein class- java.lang.Throwable
 
 - 
printStackTracepublic void printStackTrace(java.io.PrintStream s) Print a stack trace for this exception with a givenPrintStream.- Overrides:
- printStackTracein class- java.lang.Throwable
- Parameters:
- s- The- PrintStreamto which the stack trace will be written
 
 - 
printStackTracepublic void printStackTrace(java.io.PrintWriter s) Print a stack trace for this exception with a givenPrintWriter.- Overrides:
- printStackTracein class- java.lang.Throwable
- Parameters:
- s- The- PrintWriterto which the stack trace will be written
 
 
- 
 
-