org.skife.jdbi.spring
Class SQLExceptionTranslatingThrowsAdvice

java.lang.Object
  extended by org.skife.jdbi.spring.SQLExceptionTranslatingThrowsAdvice

public class SQLExceptionTranslatingThrowsAdvice
extends java.lang.Object

Implementation of an AOP advice that provides translation of SQLExceptions reported by DBI into Spring's DataAccessException hierarchy.

Author:
Thomas Risberg

Constructor Summary
SQLExceptionTranslatingThrowsAdvice(javax.sql.DataSource dataSource)
           
 
Method Summary
 void afterThrowing(java.lang.reflect.Method method, java.lang.Object[] args, java.lang.Object target, DBIException ex)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

SQLExceptionTranslatingThrowsAdvice

public SQLExceptionTranslatingThrowsAdvice(javax.sql.DataSource dataSource)
Method Detail

afterThrowing

public void afterThrowing(java.lang.reflect.Method method,
                          java.lang.Object[] args,
                          java.lang.Object target,
                          DBIException ex)
                   throws java.lang.Throwable
Throws:
java.lang.Throwable