Adam Kennedy > Aspect-1.03 > Aspect::Pointcut::Throwing

Download:
Aspect-1.03.tar.gz

Dependencies

Annotate this POD

CPAN RT

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

NAME ^

Aspect::Pointcut::Throwing - Exception typing pointcut

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

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.

AUTHORS ^

Adam Kennedy <adamk@cpan.org>

Marcel Grünauer <marcel@cpan.org>

Ran Eilam <eilara@cpan.org>

COPYRIGHT ^

Copyright 2001 by Marcel Grünauer

Some parts 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: