|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectjava.lang.Throwable
java.lang.Exception
org.firebirdsql.gds.GDSException
A GDS-specific exception
Field Summary | |
protected int |
intParam
|
protected GDSException |
next
My child |
protected java.lang.String |
strParam
|
protected int |
type
|
protected int |
xaErrorCode
The variable xaErrorCode is used to allow the same
code to be used for transaction control from the XAResource,
LocalTransaction, and Connection. |
Constructor Summary | |
GDSException(int fbErrorCode)
Create a new instance. |
|
GDSException(int type,
int intParam)
Create a new instance. |
|
GDSException(int type,
int fbErrorCode,
java.lang.String strParam)
Construct instance of this class. |
|
GDSException(int type,
java.lang.String strParam)
Create a new instance. |
|
GDSException(java.lang.String message)
Create a new instance with only a simple message. |
Method Summary | |
static GDSException |
createWithXAErrorCode(java.lang.String message,
int xaErrorCode)
Factory method to create a new instance with a given XA
error code. |
int |
getFbErrorCode()
Get the Firebird-specific error code for this exception. |
int |
getIntParam()
Get the int parameter for this exception. |
java.lang.String |
getMessage()
Returns a string representation of this exception. |
GDSException |
getNext()
Get the next chained exception. |
java.lang.String |
getParam()
Returns the parameter depending on the type of the error code. |
int |
getXAErrorCode()
Get the XaErrorCode value. |
boolean |
isWarning()
Retrieve whether this exception is a warning. |
void |
setNext(GDSException e)
Set the next exception in the chain. |
void |
setXAErrorCode(int xaErrorCode)
Set the XaErrorCode value. |
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 |
protected int type
protected int intParam
protected java.lang.String strParam
protected int xaErrorCode
xaErrorCode
is used to allow the same
code to be used for transaction control from the XAResource,
LocalTransaction, and Connection. This code may be added to
the GDSException without obscuring the message: only at the
final level is the GDSException converted to the spec-required
exception.
protected GDSException next
Constructor Detail |
public GDSException(int type, int intParam)
type
- type of the exception, should be always
ISCConstants.isc_arg_gds
, otherwise no message will be
displayed.intParam
- Additional int parameter about the new exceptionpublic GDSException(int type, java.lang.String strParam)
type
- type of the exception, should be always
ISCConstants.isc_arg_gds
, otherwise no message will be
displayed.strParam
- value of the string parameter that will substitute
{0}
entry in error message corresponding to the
specified error code.public GDSException(int type, int fbErrorCode, java.lang.String strParam)
type
- type of the exception, should be always
ISCConstants.isc_arg_gds
, otherwise no message will be displayed.fbErrorCode
- Firebird error code, one of the constants declared
in GDS
interface.strParam
- value of the string parameter that will substitute
{0}
entry in error message corresponding to the specified
error code.public GDSException(int fbErrorCode)
fbErrorCode
- Firebird error code, one of the constants declared
in GDS
interfacepublic GDSException(java.lang.String message)
message
- Message for the new exceptionMethod Detail |
public static GDSException createWithXAErrorCode(java.lang.String message, int xaErrorCode)
XA
error code.
message
- Message for the new instancexaErrorCode
- The XA
error codepublic int getFbErrorCode()
public int getIntParam()
int
parameter for this exception.
int
parameterpublic int getXAErrorCode()
public void setXAErrorCode(int xaErrorCode)
xaErrorCode
- The new XaErrorCode value.public void setNext(GDSException e)
e
- The next chained exceptionpublic GDSException getNext()
public boolean isWarning()
true
if this is a warning,
false
otherwisepublic java.lang.String getMessage()
public java.lang.String getParam()
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |