| line | stmt | bran | cond | sub | pod | time | code | 
| 1 |  |  |  |  |  |  | package SyForm::Exception; | 
| 2 |  |  |  |  |  |  | BEGIN { | 
| 3 | 7 |  |  | 7 |  | 264 | $SyForm::Exception::AUTHORITY = 'cpan:GETTY'; | 
| 4 |  |  |  |  |  |  | } | 
| 5 |  |  |  |  |  |  | # ABSTRACT: SyForm base exception class | 
| 6 |  |  |  |  |  |  | $SyForm::Exception::VERSION = '0.103'; | 
| 7 | 7 |  |  | 7 |  | 54 | use Moo; | 
|  | 7 |  |  |  |  | 15 |  | 
|  | 7 |  |  |  |  | 42 |  | 
| 8 |  |  |  |  |  |  | extends 'Throwable::Error'; | 
| 9 |  |  |  |  |  |  |  | 
| 10 |  |  |  |  |  |  | around throw => sub { | 
| 11 |  |  |  |  |  |  | my ( $orig, $class, $message, %args ) = @_; | 
| 12 |  |  |  |  |  |  | $class->$orig({ | 
| 13 |  |  |  |  |  |  | message => "\n".'[SyForm Exception] '.$message, %args | 
| 14 |  |  |  |  |  |  | }); | 
| 15 |  |  |  |  |  |  | }; | 
| 16 |  |  |  |  |  |  |  | 
| 17 |  |  |  |  |  |  | sub throw_with_args { | 
| 18 | 0 |  |  | 0 | 0 |  | my ( $class, $message ) = @_; | 
| 19 | 0 |  |  |  |  |  | $class->throw($message); | 
| 20 |  |  |  |  |  |  | } | 
| 21 |  |  |  |  |  |  |  | 
| 22 |  |  |  |  |  |  | 1; | 
| 23 |  |  |  |  |  |  |  | 
| 24 |  |  |  |  |  |  | __END__ | 
| 25 |  |  |  |  |  |  |  | 
| 26 |  |  |  |  |  |  | =pod | 
| 27 |  |  |  |  |  |  |  | 
| 28 |  |  |  |  |  |  | =head1 NAME | 
| 29 |  |  |  |  |  |  |  | 
| 30 |  |  |  |  |  |  | SyForm::Exception - SyForm base exception class | 
| 31 |  |  |  |  |  |  |  | 
| 32 |  |  |  |  |  |  | =head1 VERSION | 
| 33 |  |  |  |  |  |  |  | 
| 34 |  |  |  |  |  |  | version 0.103 | 
| 35 |  |  |  |  |  |  |  | 
| 36 |  |  |  |  |  |  | =head1 AUTHOR | 
| 37 |  |  |  |  |  |  |  | 
| 38 |  |  |  |  |  |  | Torsten Raudssus <torsten@raudss.us> | 
| 39 |  |  |  |  |  |  |  | 
| 40 |  |  |  |  |  |  | =head1 COPYRIGHT AND LICENSE | 
| 41 |  |  |  |  |  |  |  | 
| 42 |  |  |  |  |  |  | This software is copyright (c) 2014 by Torsten Raudssus. | 
| 43 |  |  |  |  |  |  |  | 
| 44 |  |  |  |  |  |  | This is free software; you can redistribute it and/or modify it under | 
| 45 |  |  |  |  |  |  | the same terms as the Perl 5 programming language system itself. | 
| 46 |  |  |  |  |  |  |  | 
| 47 |  |  |  |  |  |  | =cut |