Class DB2ExceptionSorter
java.lang.Object
org.jboss.jca.adapters.jdbc.extensions.db2.DB2ExceptionSorter
- All Implemented Interfaces:
Serializable,ExceptionSorter
A DB2ExceptionSorter current only supporting the Type 4 Universal driver.
Note, currently the DB2 JDBC developers guide only reports a few error codes.
The code -9999 implies that the condition does not have a related code.
TODO DB2 CLI
- Version:
- $Revision: 71554 $
- Author:
- Weston Price
- See Also:
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionbooleanEvaluates ajava.sql.SQLExceptionto determine if the error was fatalvoidsetConsider99999Fatal(String value) set via <config-property name="Consider99999Fatal">TRUE/FALSE</> Consider DB2's -99999 error code fatal, regardless of the associated message.voidsetFatal99999Messages(String messages) set via <config-property name="Fatal99999Messages">Connection is closed, Connection reset</> Which -99999 are considered fatal.
-
Constructor Details
-
DB2ExceptionSorter
public DB2ExceptionSorter()Constructor
-
-
Method Details
-
setConsider99999Fatal
set via <config-property name="Consider99999Fatal">TRUE/FALSE</> Consider DB2's -99999 error code fatal, regardless of the associated message.- Parameters:
value- The value
-
setFatal99999Messages
set via <config-property name="Fatal99999Messages">Connection is closed, Connection reset</> Which -99999 are considered fatal. "Connection is closed" is the default message.- Parameters:
messages- The messages to be considered fatal
-
isExceptionFatal
Evaluates ajava.sql.SQLExceptionto determine if the error was fatal- Specified by:
isExceptionFatalin interfaceExceptionSorter- Parameters:
e- thejava.sql.SQLException- Returns:
- whether or not the exception is vatal.
-