Interface SqlExceptionHandler
- Functional Interface:
- This is a functional interface and can therefore be used as the assignment target for a lambda expression or method reference.
Handler for exceptions thrown while executing SQL statements.
-
Method Summary
Modifier and TypeMethodDescriptionvoidhandle(SQLException ex, StatementContext ctx) Take action based on a SQLException thrown during statement execution.
-
Method Details
-
handle
Take action based on a SQLException thrown during statement execution. If you would like to replace the thrown exception with a new one, you maythrowfrom this method. If the method returns normally, exception handling proceeds to the next oldest registered handler. If no handler opts tothrow, the original exception will propagate wrapped by anUnableToExecuteStatementException.- Parameters:
ex- the exception thrownctx- the statement context
-