public class DataAccessException extends RuntimeException
DataAccessException
is a generic RuntimeException
indicating that something went wrong while executing a SQL statement from
jOOQ. The idea behind this unchecked exception is borrowed from Spring's
JDBC's DataAccessExceptionConstructor and Description |
---|
DataAccessException(String message)
Constructor for DataAccessException.
|
DataAccessException(String message,
Throwable cause)
Constructor for DataAccessException.
|
Modifier and Type | Method and Description |
---|---|
StackTraceElement[] |
getStackTrace() |
String |
sqlState()
Retrieve the
SQLException.getSQLState() from Throwable.getCause() ,
if this DataAccessException was caused by a
SQLException . |
SQLStateClass |
sqlStateClass()
Decode the
SQLException.getSQLState() from Throwable.getCause()
into SQLStateClass , if this DataAccessException was
caused by a SQLException . |
SQLStateSubclass |
sqlStateSubclass()
Decode the
SQLException.getSQLState() from Throwable.getCause()
into SQLStateSubclass , if this DataAccessException was
caused by a SQLException . |
addSuppressed, fillInStackTrace, getCause, getLocalizedMessage, getMessage, getSuppressed, initCause, printStackTrace, printStackTrace, printStackTrace, setStackTrace, toString
public DataAccessException(String message)
message
- the detail messagepublic String sqlState()
SQLException.getSQLState()
from Throwable.getCause()
,
if this DataAccessException
was caused by a
SQLException
.public SQLStateClass sqlStateClass()
SQLException.getSQLState()
from Throwable.getCause()
into SQLStateClass
, if this DataAccessException
was
caused by a SQLException
.public SQLStateSubclass sqlStateSubclass()
SQLException.getSQLState()
from Throwable.getCause()
into SQLStateSubclass
, if this DataAccessException
was
caused by a SQLException
.public StackTraceElement[] getStackTrace()
getStackTrace
in class Throwable
Copyright © 2017. All Rights Reserved.