Passing/Exception/Encoding.pm

filter: Statementstmt 100% 17 / 17 Branchbran n/a Conditioncond n/a MC/DCmcdc n/a Subroutinesub 100% 5 / 5 Podpod n/a totaltotal 100% 22 / 22 SCAR 0.0
CC
1
Cov
100%
BEGIN
1.0
BEGIN
1.0
BEGIN
1.0
CRAP 1.0
« Passing/Exception/Decoding.pm ↑ Summary Passing/Filter/All.pm »
1 package Message::Passing::Exception::Encoding;
2 6 ▶use Moo;
Subroutine BEGIN: called CC=1 SCAR=0.0
3 6 ▶use Data::Dumper ();
Subroutine BEGIN: called CC=1 SCAR=0.0
4 6 ▶use MooX::Types::MooseLike::Base qw/ Str /;
Subroutine BEGIN: called CC=1 SCAR=0.0
5 6 ▶use namespace::clean -except => 'meta';
Subroutine BEGIN: called CC=1 SCAR=0.0
6  
7 6 with 'Message::Passing::Exception';
8  
9 6 has exception => (
10 is => 'ro',
11 required => 1,
12 );
13  
14 has stringified_data => (
15 is => 'ro',
16 isa => Str,
17 coerce => sub {
18 1 ▶ Data::Dumper::Dumper($_[0]);
Subroutine __ANON__: called CC=1 SCAR=0.0
19 },
20 6 );
21  
22 6 1;
23  
24 =head1 NAME
25  
26 Message::Passing::Exception::Encoding - An issue when encoding data
27  
28 =head1 ATTRIBUTES
29  
30 =head2 exception
31  
32 The exception encountered when trying to encode the message
33  
34 =head2 stringified_data
35  
36 The original message, dumped using L<Data::Dumper>.
37  
38 =head1 AUTHOR, COPYRIGHT AND LICENSE
39  
40 See L<Message::Passing>.
41  
42 =cut
43  
« Passing/Exception/Decoding.pm ↑ Summary Passing/Filter/All.pm »