| 1 | package Message::Passing::Exception; | ||
| 2 | 7 | ▶ | use Moo::Role; |
|
Subroutine
BEGIN: called CC=1 SCAR=0.0
| |||
| 3 | 7 | ▶ | use namespace::clean -except => 'meta'; |
|
Subroutine
BEGIN: called CC=1 SCAR=0.0
| |||
| 4 | |||
| 5 | sub as_hash { | ||
| 6 | 4 | ▶ | return { %{ $_[0] }, class => ref($_[0]) } |
|
Subroutine
as_hash: called CC=1 SCAR=0.0
Pod
documented
| |||
| 7 | } | ||
| 8 | |||
| 9 | sub pack { | ||
| 10 | 2 | ▶ | $_[0]->as_hash; |
|
Subroutine
pack: called CC=1 SCAR=0.0
Pod
documented
| |||
| 11 | } | ||
| 12 | |||
| 13 | 7 | 1; | |
| 14 | |||
| 15 | =head1 NAME | ||
| 16 | |||
| 17 | Message::Passing::Exception - Base role for Message::Passing exceptions | ||
| 18 | |||
| 19 | =head1 METHODS | ||
| 20 | |||
| 21 | =head2 as_hash | ||
| 22 | |||
| 23 | =head2 pack | ||
| 24 | |||
| 25 | Synonyms, which return a flattened (to a hash) object. | ||
| 26 | |||
| 27 | =head1 AUTHOR, COPYRIGHT AND LICENSE | ||
| 28 | |||
| 29 | See L<Message::Passing>. | ||
| 30 | |||
| 31 | =cut | ||
| 32 | |||