- or download this
package Foo::Exceptions;
use strict;
...
# etc.
);
- or download this
Foo::Exception::DBI->throw($DBI::errstr)
Foo::Exception::Dupe->throw(name => $name, error => $value);
- or download this
eval {$foo->something_that_might_die};
if (ref($@)) {
...
};
};
die $@ if $@;