SQLException
ldbc.connector.exception.SQLException
An exception that provides information on a database access error or other errors.
Each SQLException
provides several kinds of information:
- a string describing the error. This is used as the Java Exception message, available via the method
getMessage
. - a "SQLstate" string, which follows either the XOPEN SQLstate conventions or the SQL:2003 conventions. The values of the SQLState string are described in the appropriate spec. The
DatabaseMetaData
methodgetSQLStateType
can be used to discover whether the driver returns the XOPEN type or the SQL:2003 type. - an integer error code that is specific to each vendor. Normally this will be the actual error code returned by the underlying database.
- a chain to a next Exception. This can be used to provide additional error information.
- the causal relationship, if any for this
SQLException
.
Attributes
- Source
- SQLException.scala
- Graph
-
- Supertypes
-
class Exceptionclass Throwabletrait Serializableclass Objecttrait Matchableclass Any
- Known subtypes
-
class BatchUpdateExceptionclass SQLClientInfoExceptionclass SQLNonTransientExceptionclass SQLDataExceptionclass SQLSyntaxErrorExceptionclass SQLRecoverableExceptionclass SQLTransientExceptionclass SQLTimeoutExceptionclass UnknownPacketException
Members list
In this article