Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- package FancyExample;
- use strict;
- use warnings;
- use base 'Exporter';
- our @EXPORT = qw( fancy_death );
- use Exception::Class::OnCaller ex => {
- fields => "data",
- description => "This exception has many bells and whistles!",
- -as => 'throw',
- -subclass => 'BlingError',
- };
- sub fancy_death {
- die throw( error => "meep", data => { stuff => 'goes here' } );
- }
- 1;
Add Comment
Please, Sign In to add comment