java.lang.Object
java.lang.Throwable
java.lang.Exception
java.lang.RuntimeException
org.jooq.exception.DataAccessException
org.jooq.exception.DataException
- All Implemented Interfaces:
Serializable
The
DataException
is jOOQ's equivalent of JDBC's
SQLDataException
.
It is thrown by jOOQ whenever jOOQ detects
SQLStateClass.C22_DATA_EXCEPTION
from the JDBC driver. Whether this
SQL state is available is JDBC driver implementation specific.
- Author:
- Lukas Eder
- See Also:
-
Constructor Summary
ConstructorDescriptionDataException
(String message) Constructor for DataException.DataException
(String message, Throwable cause) Constructor for DataException. -
Method Summary
Methods inherited from class org.jooq.exception.DataAccessException
getCause, getStackTrace, sqlState, sqlStateClass, sqlStateClass, sqlStateClass, sqlStateClass, sqlStateSubclass, sqlStateSubclass
Methods inherited from class java.lang.Throwable
addSuppressed, fillInStackTrace, getCause, getLocalizedMessage, getMessage, getSuppressed, initCause, printStackTrace, printStackTrace, printStackTrace, setStackTrace, toString
-
Constructor Details
-
DataException
Constructor for DataException.- Parameters:
message
- the detail message
-
DataException
Constructor for DataException.- Parameters:
message
- the detail messagecause
- the root cause (usually from using a underlying data access API such as JDBC)
-