Module org.jooq

Class DataException

All Implemented Interfaces:
Serializable

public class DataException extends DataAccessException
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 Details

    • DataException

      public DataException(String message)
      Constructor for DataException.
      Parameters:
      message - the detail message
    • DataException

      public DataException(String message, Throwable cause)
      Constructor for DataException.
      Parameters:
      message - the detail message
      cause - the root cause (usually from using a underlying data access API such as JDBC)