File Coverage

blib/lib/Business/CPI/Role/Exception.pm
Criterion Covered Total %
statement 9 9 100.0
branch n/a
condition n/a
subroutine 3 3 100.0
pod n/a
total 12 12 100.0


line stmt bran cond sub pod time code
1             package Business::CPI::Role::Exception;
2             # ABSTRACT: Exceptions from the gateway
3 1     1   10930 use Moo::Role;
  1         4  
  1         6  
4 1     1   1141 use Types::Standard qw/Int Str HashRef/;
  1         77999  
  1         12  
5 1     1   1290 use Business::CPI::Util::Types qw/ExceptionType/;
  1         5  
  1         16  
6             with 'Throwable';
7              
8             our $VERSION = '0.924'; # VERSION
9              
10             has type => (
11             coerce => ExceptionType->coercion,
12             isa => ExceptionType,
13             is => 'ro',
14             required => 1,
15             );
16              
17             has message => (
18             isa => Str,
19             is => 'ro',
20             required => 1,
21             );
22              
23             has gateway_data => (
24             isa => HashRef,
25             is => 'ro',
26             required => 1,
27             );
28              
29             1;
30              
31             __END__