Package io.vertigo.database.sql.vendor
Interface SqlExceptionHandler
- All Known Implementing Classes:
AbstractSqlExceptionHandler
public interface SqlExceptionHandler
This class handles sql exceptions to create userException
or to wrap the original checked exception into an unchecked exception.
- Author:
- npiedeloup
-
Method Summary
Modifier and TypeMethodDescriptionhandleSQLException(SQLException sqle, String statementInfos) Handles and Transforms SQL exception into simple runtime Exception.
-
Method Details
-
handleSQLException
Handles and Transforms SQL exception into simple runtime Exception. Basic execption are managed according their code. ( or range)- Parameters:
sqle- the original sql exceptionstatementInfos- sql statement and params- Returns:
- the transformed execption as a runtime execption
-