Adam Kennedy > Aspect-1.02 > Aspect::Pointcut::Returning

Download:
Aspect-1.02.tar.gz

Dependencies

Annotate this POD

CPAN RT

New  2
Open  1
View/Report Bugs
Module Version: 1.02   Source   Latest Release: Aspect-1.04

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;

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.

AUTHORS ^

Adam Kennedy <adamk@cpan.org>

COPYRIGHT ^

Copyright 2009 - 2012 Adam Kennedy.

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

syntax highlighting: