Announcement Announcement Module
Collapse
No announcement yet.
Writing an interceptor/aop advice to convert DataAccessException Page Title Module
Move Remove Collapse
X
Conversation Detail Module
Collapse
  • Filter
  • Time
  • Show
Clear All
new posts

  • Writing an interceptor/aop advice to convert DataAccessException

    I am looking for advice/example on how to solve this suggestion I received on my data access posting to convert a thrown DataAccessException into your own Exceptions using <aop:config/>..after-thowing?

    Originally posted by mdeinum View Post
    .... write a interceptor/aop advice which converts the DataAccessExceptions into your own Exceptions.
    Can declarative Spring AOP handle this? I won't start implementing aspectJ for another month.

    thank you!

  • #2
    Take a look at the example in this talk: Using AOP in the Enterprise.

    The short of it is, the DAO has a after-throwing interceptor to convert the exception from Hibernate to DataAccessException, similar to what you want.

    Comment

    Working...
    X