org.firebirdsql.jca
Class FBXAException
XAException
org.firebirdsql.jca.FBXAException
public class FBXAException
extends XAException
Convenience exception that adds constructor taking message and error code
together.
FBXAException()
|
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.
|
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.
|
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 .
|
FBXAException
public FBXAException()
FBXAException
public FBXAException(String msg)
Create a new instance of FBXAException
with a given
message.
msg
- The string message for this exception
FBXAException
public FBXAException(String msg,
int errorCode)
Create a new instance of FBXAException
based around
a message and specific error code.
msg
- The string message for this exceptionerrorCode
- The error code for this exception
FBXAException
public FBXAException(int errorCode)
Create a new instance of FBXAException
based around
a specific error code.
errorCode
- The error code for this exception
FBXAException
public FBXAException(int errorCode,
Exception reason)
Create a new instance of FBXAException
wrapped around
an underlying exception.
errorCode
- The error code for this exceptionreason
- The underlying exception
getMessage
public String getMessage()
Get message of this exception.
- combined message of this exception and original exception.
printStackTrace
public void printStackTrace()
Print a stack trace for this exception to STDERR
.
printStackTrace
public void printStackTrace(PrintStream s)
Print a stack trace for this exception with a
given PrintStream
.
s
- The PrintStream
to which the stack trace will
be written
printStackTrace
public void printStackTrace(PrintWriter s)
Print a stack trace for this exception with a
given PrintWriter
.
s
- The PrintWriter
to which the stack trace will
be written
Copyright B) 2001 David Jencks and other authors. All rights reserved.