Aspect::Pointcut::Returning - Function returning without exception


Aspect documentation  | view source Contained in the Aspect distribution.

Index


NAME

Top

Aspect::Pointcut::Returning - Function returning without exception

  use Aspect;

  # Don't trap Foo::Exception object exceptions
  after {
      $_->return_value(1)
  } call 'Foo::bar' & returning;

DESCRIPTION

Top

The Aspect::Pointcut::Returning pointcut is used to match situations in which after advice should NOT run when the function is throwing an exception.

AUTHORS

Top

Adam Kennedy <adamk@cpan.org>

COPYRIGHT

Top


Aspect documentation  | view source Contained in the Aspect distribution.