oracle.jdbc.xa
Class OracleXAException

oracle.jdbc.xa.OracleXAException

public class OracleXAException

OracleConnectionCache extends XAException to leverage Oracle SQL Error number corresponding to the XA Exception.


Constructor Summary
OracleXAException()
          Default OracleXAException class.
OracleXAException(int error)
          Default OracleXAException class that takes an error code which is a combination of Oracle Sql No.
 
Method Summary
TypeMethod
 int getOracleError()
          getOracleError returns the Oracle Error code corresponding to this exception.
 int getXAError()
          getXAError returns the XA Error code corresponding to this exception.
static java.lang.String getXAErrorMessage(int eCode)
           
 

Constructor Detail

OracleXAException

public OracleXAException()
Default OracleXAException class.


OracleXAException

public OracleXAException(int error)
Default OracleXAException class that takes an error code which is a combination of Oracle Sql No. and XA Error No.

Parameters:
error - Oracle Error no.
Method Detail

getXAError

public int getXAError()
getXAError returns the XA Error code corresponding to this exception. The error codes are the one defined in XAException class.

Returns:
int XA Error Code.

getOracleError

public int getOracleError()
getOracleError returns the Oracle Error code corresponding to this exception. Return values are the standard ORA errors. Returns zero when one doesn't exist.

Returns:
int Oracle Error Code.

getXAErrorMessage

public static java.lang.String getXAErrorMessage(int eCode)