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::Throwing - Exception typing pointcut

Authors

       Adam Kennedy <adamk@cpan.org>

       Marcel Grünauer <marcel@cpan.org>

       Ran Eilam <eilara@cpan.org>

Description

       The Aspect::Pointcut::Throwing pointcut is used to match situations in which an after() advice block
       wishes to intercept the throwing of a specific exception string or object.

Name

       Aspect::Pointcut::Throwing - Exception typing pointcut

         use Aspect;

         # Catch a Foo::Exception object exception
         after {
             $_->return_value(1)
         } throwing 'Foo::Exception';

See Also