Interface JooqErrorConverter<T extends Throwable>

Type Parameters:
T - Type of Throwable
All Superinterfaces:
SQLErrorConverter
All Known Implementing Classes:
DB2ErrorConverter, JooqErrorConverter.JDBCErrorConverter, MSSQLErrorConverter, MySQLErrorConverter, PgErrorConverter, RuntimeJDBCErrorConverter

public interface JooqErrorConverter<T extends Throwable> extends SQLErrorConverter
Represents for SQL error maker that transforms SQL exception to jOOQ DataAccessException
Since:
1.0.0
See Also:
  • DataAccessException
  • Method Details

    • transform

      @NotNull @NotNull org.jooq.exception.DataAccessException transform(T t)
    • throwableType

      @NotNull @NotNull Class<T> throwableType()
    • handle

      default RuntimeException handle(Throwable throwable)
      Description copied from interface: SQLErrorConverter
      Handle throwable to runtime exception
      Specified by:
      handle in interface SQLErrorConverter
      Parameters:
      throwable - throwable
      Returns:
      runtime exception that wraps given exception if the given is not runtime exception