Aspect::Pointcut::Throwing - Exception typing pointcut


Aspect documentation  | view source Contained in the Aspect distribution.

Index


NAME

Top

Aspect::Pointcut::Throwing - Exception typing pointcut

  use Aspect;

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

DESCRIPTION

Top

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.

AUTHORS

Top

Adam Kennedy <adamk@cpan.org>

Marcel Grünauer <marcel@cpan.org>

Ran Eilam <eilara@cpan.org>

COPYRIGHT

Top


Aspect documentation  | view source Contained in the Aspect distribution.