Package guru.mikelue.jdut.jdbc
Interface SQLExceptionConvert<E extends RuntimeException>
-
- Type Parameters:
E
- The type of exception to be generated
- All Superinterfaces:
Function<SQLException,E>
- Functional Interface:
- This is a functional interface and can therefore be used as the assignment target for a lambda expression or method reference.
@FunctionalInterface public interface SQLExceptionConvert<E extends RuntimeException> extends Function<SQLException,E>
Converts theSQLException
into another instance ofRuntimeException
.
-
-
Method Summary
Static Methods Modifier and Type Method Description static RuntimeException
runtimeException(SQLException e)
The pre-defined instance for convertingSQLException
toRuntimeException
.
-
-
-
Method Detail
-
runtimeException
static RuntimeException runtimeException(SQLException e)
The pre-defined instance for convertingSQLException
toRuntimeException
.- Parameters:
e
- The sql exception to be converted- Returns:
- runtime exception
-
-