Package net.solarnetwork.dao.jdbc
Interface SQLExceptionHandler
public interface SQLExceptionHandler
A handler for SQL exceptions.
- Version:
- 1.1
- Author:
- matt
-
Method Summary
Modifier and TypeMethodDescriptionvoidHandle an exception triggered on an activeConnection.default voidhandleConnectionException(DataSource dataSource, Connection conn, SQLException e) Handle an exception triggered on an activeConnection.voidHandle an exception triggered when a connection cannot be obtained.default voidhandleGetConnectionException(DataSource dataSource, SQLException e) Handle an exception triggered when a connection cannot be obtained from aDataSource.
-
Method Details
-
handleGetConnectionException
Handle an exception triggered when a connection cannot be obtained.- Parameters:
e- the exception to handle
-
handleGetConnectionException
Handle an exception triggered when a connection cannot be obtained from aDataSource.This default implementation simply calls
handleGetConnectionException(SQLException).- Parameters:
dataSource- the data sourcee- the exception to handle- Since:
- 1.1
-
handleConnectionException
Handle an exception triggered on an activeConnection.- Parameters:
conn- theConnectionthe exception occurred one- the exception to handle
-
handleConnectionException
Handle an exception triggered on an activeConnection.This default implementation simply calls
handleConnectionException(Connection, SQLException).- Parameters:
dataSource- the data sourceconn- theConnectionthe exception occurred one- the exception to handle- Since:
- 1.1
-