logo
Free, unlimited AI code reviews that run on commit
git-lrc git-lrc GitHub Install Now We'd appreciate a star git-lrc - Free, unlimited AI code reviews that run on commit | Product Hunt git-lrc - Free, unlimited AI code reviews that run on commit | Product Hunt

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