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 Details

    • 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 exception
      statementInfos - sql statement and params
      Returns:
      the transformed execption as a runtime execption