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 theSQLExceptioninto another instance ofRuntimeException.
-
-
Method Summary
Static Methods Modifier and Type Method Description static RuntimeExceptionruntimeException(SQLException e)The pre-defined instance for convertingSQLExceptiontoRuntimeException.
-
-
-
Method Detail
-
runtimeException
static RuntimeException runtimeException(SQLException e)
The pre-defined instance for convertingSQLExceptiontoRuntimeException.- Parameters:
e- The sql exception to be converted- Returns:
- runtime exception
-
-