org.midao.jdbc.core.exception
Interface ExceptionHandler
- All Known Implementing Classes:
- BaseExceptionHandler, SpringExceptionHandler
public interface ExceptionHandler
Midao Exception Handler. Allows rethrowing SQL Exception while populating it with query parameters
Method Summary |
MidaoSQLException |
convert(java.sql.Connection conn,
java.sql.SQLException cause,
java.lang.String sql,
java.lang.Object... params)
Converts SQLException into MidaoSQLException while populating it with query parameters |
convert
MidaoSQLException convert(java.sql.Connection conn,
java.sql.SQLException cause,
java.lang.String sql,
java.lang.Object... params)
- Converts SQLException into MidaoSQLException while populating it with query parameters
- Parameters:
conn
- SQL Connection which is used in current session. Is not guaranteed to be opencause
- original SQL Exceptionsql
- SQL string which was executedparams
- parameters which were supplied to the query
- Returns:
- filled
MidaoSQLException
Copyright © 2013. All Rights Reserved.