- java.lang.Object
- 
- java.lang.Throwable
- 
- java.lang.Exception
- 
- java.lang.RuntimeException
- 
- org.jooq.exception.DataAccessException
 
 
 
 
- 
- All Implemented Interfaces:
- Serializable
 - Direct Known Subclasses:
- ConfigurationException,- DataChangedException,- DataDefinitionException,- DataMigrationException,- DataTypeException,- DetachedException,- InvalidResultException,- IOException,- LoaderConfigurationException,- MappingException,- MockFileDatabaseException,- ParserException
 
 public class DataAccessException extends RuntimeException TheDataAccessExceptionis a genericRuntimeExceptionindicating that something went wrong while executing a SQL statement from jOOQ. The idea behind this unchecked exception is borrowed from Spring's JDBC's DataAccessException- Author:
- Sergey Epik - Merged into jOOQ from Spring JDBC Support, Lukas Eder
- See Also:
- Serialized Form
 
- 
- 
Constructor SummaryConstructors Constructor Description DataAccessException(String message)Constructor for DataAccessException.DataAccessException(String message, Throwable cause)Constructor for DataAccessException.
 - 
Method SummaryAll Methods Instance Methods Concrete Methods Modifier and Type Method Description <T extends Throwable>
 TgetCause(Class<? extends T> type)Find a root cause of a given type, ornullif no root cause of that type was found.StackTraceElement[]getStackTrace()StringsqlState()Retrieve theSQLException.getSQLState()fromThrowable.getCause(), if thisDataAccessExceptionwas caused by aSQLException.SQLStateClasssqlStateClass()Decode theSQLException.getSQLState()fromThrowable.getCause()intoSQLStateClass, if thisDataAccessExceptionwas caused by aSQLException.SQLStateSubclasssqlStateSubclass()Decode theSQLException.getSQLState()fromThrowable.getCause()intoSQLStateSubclass, if thisDataAccessExceptionwas caused by aSQLException.- 
Methods inherited from class java.lang.ThrowableaddSuppressed, fillInStackTrace, getCause, getLocalizedMessage, getMessage, getSuppressed, initCause, printStackTrace, printStackTrace, printStackTrace, setStackTrace, toString
 
- 
 
- 
- 
- 
Constructor Detail- 
DataAccessExceptionpublic DataAccessException(String message) Constructor for DataAccessException.- Parameters:
- message- the detail message
 
 
- 
 - 
Method Detail- 
sqlStatepublic String sqlState() Retrieve theSQLException.getSQLState()fromThrowable.getCause(), if thisDataAccessExceptionwas caused by aSQLException.
 - 
sqlStateClasspublic SQLStateClass sqlStateClass() Decode theSQLException.getSQLState()fromThrowable.getCause()intoSQLStateClass, if thisDataAccessExceptionwas caused by aSQLException.
 - 
sqlStateSubclasspublic SQLStateSubclass sqlStateSubclass() Decode theSQLException.getSQLState()fromThrowable.getCause()intoSQLStateSubclass, if thisDataAccessExceptionwas caused by aSQLException.
 - 
getStackTracepublic StackTraceElement[] getStackTrace() - Overrides:
- getStackTracein class- Throwable
 
 
- 
 
-