Class java.sql.SQLException
Class Members | This Package | All Packages
java.lang.Object
|
+----java.lang.Throwable
|
+----java.lang.Exception
|
+----java.sql.SQLException
public class SQLException** extends Exception
The SQLException class provides information on a database access error.
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.