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
Modifier and TypeInterfaceDescriptionstatic class
JDBC error converter -
Field Summary
Fields inherited from interface io.github.zero88.jooqx.SQLErrorConverter
DEFAULT
-
Method Summary
Modifier and TypeMethodDescriptiondefault RuntimeException
Handle throwable to runtime exception@NotNull org.jooq.exception.DataAccessException
Methods inherited from interface io.github.zero88.jooqx.SQLErrorConverter
andThen, reThrowError
-
Method Details
-
transform
-
throwableType
-
handle
Description copied from interface:SQLErrorConverter
Handle throwable to runtime exception- Specified by:
handle
in interfaceSQLErrorConverter
- Parameters:
throwable
- throwable- Returns:
- runtime exception that wraps given exception if the given is not runtime exception
-