Blast-Radius Aware AI Code Review for Business-Critical Systems
LiveReview LiveReview Explore LiveReview

Aspect::Pointcut::Returning - Function returning without exception

Authors

       Adam Kennedy <adamk@cpan.org>

Description

       The Aspect::Pointcut::Returning pointcut is used to match situations in which "after" advice should NOT
       run when the function is throwing an exception.

Name

       Aspect::Pointcut::Returning - Function returning without exception

         use Aspect;

         # Don't trap Foo::Exception object exceptions
         after {
             $_->return_value(1)
         } call 'Foo::bar' & returning;

See Also