com.ibm.ims.rds
Class RDSSQLException
java.lang.Object
|
+--java.lang.Throwable
|
+--java.lang.Exception
|
+--java.sql.SQLException
|
+--com.ibm.ims.rds.RDSSQLException
- All Implemented Interfaces:
- java.io.Serializable
- public class RDSSQLException
- extends java.sql.SQLException
Thrown to indicate an error has occurred. This error can occur either in the Java space
or during database processing.
Each SQLException provides several kinds of information:
a string describing the error. This is used as the Java Exception message, and is available via the getMesage() method
A "SQLstate" string which follows the XOPEN SQLstate conventions. The values of the SQLState string as described in the
XOPEN SQL spec.
An integer error code that is vendor specific. Normally this will be the actual error code returned by the underlying database.
A chain to a next Exception. This can be used to provided additional error information.
- See Also:
- Serialized Form
Constructor Summary |
RDSSQLException(java.io.PrintWriter logWriter,
int traceLevel)
Construct an RDSSQLException; reason defaults to null, SQLState defaults to null
and vendorCode defaults to 0 |
RDSSQLException(java.lang.String reason,
java.io.PrintWriter logWriter,
int traceLevel)
Construct an RDSSQLException with a reason; SQLState defaults to null and vendorCode
defaults to 0 |
RDSSQLException(java.lang.String reason,
java.lang.String sQLState,
int vendorCode,
java.io.PrintWriter logWriter,
int traceLevel)
Construct a fully-specified RDSSQLException |
RDSSQLException(java.lang.String reason,
java.lang.String sQLState,
java.io.PrintWriter logWriter,
int traceLevel)
Construct an RDSSQLException with a reason and SQLState; vendorCode defaults to 0 |
Methods inherited from class java.sql.SQLException |
getErrorCode, getNextException, getSQLState, setNextException |
Methods inherited from class java.lang.Throwable |
fillInStackTrace, getLocalizedMessage, getMessage, printStackTrace, printStackTrace, printStackTrace, toString |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
RDSSQLException
public RDSSQLException(java.io.PrintWriter logWriter,
int traceLevel)
- Construct an RDSSQLException; reason defaults to null, SQLState defaults to null
and vendorCode defaults to 0
RDSSQLException
public RDSSQLException(java.lang.String reason,
java.io.PrintWriter logWriter,
int traceLevel)
- Construct an RDSSQLException with a reason; SQLState defaults to null and vendorCode
defaults to 0
- Parameters:
reason
- java.lang.String
RDSSQLException
public RDSSQLException(java.lang.String reason,
java.lang.String sQLState,
java.io.PrintWriter logWriter,
int traceLevel)
- Construct an RDSSQLException with a reason and SQLState; vendorCode defaults to 0
- Parameters:
reason
- java.lang.StringsQLState
- java.lang.String
RDSSQLException
public RDSSQLException(java.lang.String reason,
java.lang.String sQLState,
int vendorCode,
java.io.PrintWriter logWriter,
int traceLevel)
- Construct a fully-specified RDSSQLException
- Parameters:
reason
- java.lang.StringsQLState
- java.lang.StringvendorCode
- int
(C) International Business Machines Corporation 2004. All rights reserved.