Announcement Announcement Module
Collapse
No announcement yet.
ThrowsAdvice afterThrowing method parameter Page Title Module
Move Remove Collapse
X
Conversation Detail Module
Collapse
  • Filter
  • Time
  • Show
Clear All
new posts

  • ThrowsAdvice afterThrowing method parameter

    I'm a little confused with implementing the ThrowsAdvice interface.

    If I have afterThrowing with the full parameter list (including method, target, etc) in a facade class, and a DAO called from the facade throws DataAccessException, what will I get as a parameter? Will I get the facade method that called the DAO (which is what I want), or the DAO method that actually threw the exception?

  • #2
    You will get the method that is being intercepted - so the method on the proxy that you are adding some advice to.

    Rob

    Comment


    • #3
      Excellent, appreciate the help.

      Comment

      Working...
      X