Bug #9502

After and After Throwing advices intercept exceptions

Added by Robert Lemke over 10 years ago. Updated over 10 years ago.

Status:
Resolved
Priority:
Should have
Assignee:
Category:
AOP
Start date:
2010-08-30
Due date:
% Done:

100%

Estimated time:
PHP Version:
Has patch:
Complexity:

Description

Both, After and After Throwing advice, should be triggered after returning from a method or on an exception thrown by a method respectively. However, they must not intercept neither the return value nor the thrown exception. The latter is the case though.

So, currently, if one does not rethrow the exception in one's advice, the exception is swallowed by the advice. That's problematic when using AfterThrowing for logging an exception (e.g. AccessDeniedException) and forgetting about throwing the exception afterwards.


Related issues

Related to TYPO3.Flow - Bug #9539: WebRedirect entry point does not work anymoreResolvedRobert Lemke2010-08-31

Actions
#1

Updated by Robert Lemke over 10 years ago

  • Status changed from Accepted to Resolved
  • % Done changed from 0 to 100

Also available in: Atom PDF