org.jooq.exception
Class DataAccessException

java.lang.Object
  extended by java.lang.Throwable
      extended by java.lang.Exception
          extended by java.lang.RuntimeException
              extended by org.jooq.exception.DataAccessException
All Implemented Interfaces:
Serializable
Direct Known Subclasses:
DataChangedException, DataTypeException, DetachedException, InvalidResultException, MappingException

public class DataAccessException
extends RuntimeException

The 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 DataAccessException

Author:
Sergey Epik - Merged into jOOQ from Spring JDBC Support, Lukas Eder
See Also:
Serialized Form

Constructor Summary
DataAccessException(String message)
          Constructor for DataAccessException.
DataAccessException(String message, Throwable cause)
          Constructor for DataAccessException.
 
Method Summary
 
Methods inherited from class java.lang.Throwable
fillInStackTrace, getCause, getLocalizedMessage, getMessage, getStackTrace, initCause, printStackTrace, printStackTrace, printStackTrace, setStackTrace, toString
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

DataAccessException

public DataAccessException(String message)
Constructor for DataAccessException.

Parameters:
message - the detail message

DataAccessException

public DataAccessException(String message,
                           Throwable cause)
Constructor for DataAccessException.

Parameters:
message - the detail message
cause - the root cause (usually from using a underlying data access API such as JDBC)


Copyright © 2012. All Rights Reserved.