|
||||||||||
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
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)
|
|
GDSException(int type,
int intParam)
|
|
GDSException(int type,
int fbErrorCode,
java.lang.String strParam)
Construct instance of this class. |
|
GDSException(int type,
java.lang.String strParam)
|
|
GDSException(java.lang.String message)
|
Method Summary | |
static GDSException |
createWithXAErrorCode(java.lang.String message,
int xaErrorCode)
|
int |
getFbErrorCode()
|
int |
getIntParam()
|
java.lang.String |
getMessage()
Returns a string representation of this exception. |
GDSException |
getNext()
|
protected java.lang.String |
getParam()
Returns the parameter depending on the type of the error code. |
int |
getXAErrorCode()
Get the XaErrorCode value. |
boolean |
isFatal()
|
boolean |
isWarning()
|
void |
setNext(GDSException e)
|
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)
public GDSException(int type, java.lang.String strParam)
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)
public GDSException(java.lang.String message)
Method Detail |
public static GDSException createWithXAErrorCode(java.lang.String message, int xaErrorCode)
public int getFbErrorCode()
public int getIntParam()
public int getXAErrorCode()
public void setXAErrorCode(int xaErrorCode)
xaErrorCode
- The new XaErrorCode value.public void setNext(GDSException e)
public GDSException getNext()
public boolean isWarning()
public java.lang.String getMessage()
public boolean isFatal()
protected java.lang.String getParam()
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |