Aspect::Pointcut::Throwing.3pm

Langue: en

Version: 2010-05-27 (ubuntu - 24/10/10)

Section: 3 (Bibliothèques de fonctions)

NAME

Aspect::Pointcut::Throwing - Exception typing pointcut
   use Aspect;
   
   # Catch a Foo::Exception object exception
   after {
       $_[0]->return_value(1)
   } throwing 'Foo::Exception';
   
   # Catch a plain die with particular string
 
 

DESCRIPTION

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

AUTHORS

Adam Kennedy <adamk@cpan.org>

Marcel Gru.nauer <marcel@cpan.org>

Ran Eilam <eilara@cpan.org>

Copyright 2001 by Marcel Gru.nauer

Some parts copyright 2009 - 2010 Adam Kennedy.

This library is free software; you can redistribute it and/or modify it under the same terms as Perl itself.