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
All Methods Instance Methods Abstract Methods Modifier and Type Method Description RuntimeException
handleSQLException(SQLException sqle, String statementInfos)
Handles and Transforms SQL exception into simple runtime Exception.
-
-
-
Method Detail
-
handleSQLException
RuntimeException handleSQLException(SQLException sqle, String statementInfos)
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
-
-