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
 

Method Detail

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 open
cause - original SQL Exception
sql - SQL string which was executed
params - parameters which were supplied to the query
Returns:
filled MidaoSQLException


Copyright © 2013. All Rights Reserved.