com.ibm.ims.db
Class DLISQLException
java.lang.Object
|
+--java.lang.Throwable
|
+--java.lang.Exception
|
+--java.sql.SQLException
|
+--com.ibm.ims.db.DLISQLException
- All Implemented Interfaces:
- java.io.Serializable
- public class DLISQLException
- 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 |
DLISQLException()
Construct a DLISQLException; reason defaults to null, SQLState defaults to null
and vendorCode defaults to 0 |
DLISQLException(java.lang.String reason)
Construct a DLISQLException with a reason; SQLState defaults to null and vendorCode
defaults to 0 |
DLISQLException(java.lang.String reason,
java.io.PrintWriter logWriter,
int traceLevel)
Construct a DLISQLException with a reason along with a J2EE trace handle, if one exists;
SQLState defaults to null and vendorCode defaults to 0 |
DLISQLException(java.lang.String reason,
java.lang.String sQLState)
Construct a DLISQLException with a reason and SQLState; vendorCode defaults to 0 |
DLISQLException(java.lang.String reason,
java.lang.String sQLState,
int vendorCode)
Construct a fully-specified DLISQLException |
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 |
DLISQLException
public DLISQLException()
- Construct a DLISQLException; reason defaults to null, SQLState defaults to null
and vendorCode defaults to 0
DLISQLException
public DLISQLException(java.lang.String reason)
- Construct a DLISQLException with a reason; SQLState defaults to null and vendorCode
defaults to 0
- Parameters:
reason
- java.lang.String
DLISQLException
public DLISQLException(java.lang.String reason,
java.io.PrintWriter logWriter,
int traceLevel)
- Construct a DLISQLException with a reason along with a J2EE trace handle, if one exists;
SQLState defaults to null and vendorCode defaults to 0
- Parameters:
reason
- java.lang.String
DLISQLException
public DLISQLException(java.lang.String reason,
java.lang.String sQLState)
- Construct a DLISQLException with a reason and SQLState; vendorCode defaults to 0
- Parameters:
reason
- java.lang.StringsQLState
- java.lang.String
DLISQLException
public DLISQLException(java.lang.String reason,
java.lang.String sQLState,
int vendorCode)
- Construct a fully-specified DLISQLException
- Parameters:
reason
- java.lang.StringsQLState
- java.lang.StringvendorCode
- int
(C) International Business Machines Corporation 2004. All rights reserved.