Risk-Aware Code Review: Auto Approve Low-Risk Changes
LiveReview LiveReview LiveReview - Free, Risk-Aware Code Review: Auto Approve Low-Risk Changes | Product Hunt LiveReview - Free, Risk-Aware Code Review: Auto Approve Low-Risk Changes | Product Hunt GitHub Install Now

We'd appreciate a star

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