---
name: "Aspect::Pointcut::Throwing"
section: "3pm"
platform: "linux"
package: "libaspect-perl"
version: "1.04-3"
release: "Debian 13 (Trixie)"
platforms: ["linux"]
url: "https://new.carta.tech/Aspect::Pointcut::Throwing"
---

# Aspect::Pointcut::Throwing(3pm)

Exception typing pointcut

## 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 - 2013 Adam Kennedy.

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