Package io.github.zero88.jooqx
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
Represents for SQL error maker that transforms SQL exception to
jOOQ DataAccessException- Since:
- 1.0.0
- See Also:
-
DataAccessException
-
Nested Class Summary
Nested ClassesModifier and TypeInterfaceDescriptionstatic classJDBC error converter -
Field Summary
Fields inherited from interface io.github.zero88.jooqx.SQLErrorConverter
DEFAULT -
Method Summary
Modifier and TypeMethodDescriptiondefault RuntimeExceptionHandle throwable to runtime exception@NotNull org.jooq.exception.DataAccessExceptionMethods inherited from interface io.github.zero88.jooqx.SQLErrorConverter
andThen, reThrowError
-
Method Details
-
transform
-
throwableType
-
handle
Description copied from interface:SQLErrorConverterHandle throwable to runtime exception- Specified by:
handlein interfaceSQLErrorConverter- Parameters:
throwable- throwable- Returns:
- runtime exception that wraps given exception if the given is not runtime exception
-