line |
stmt |
bran |
cond |
sub |
pod |
time |
code |
1
|
|
|
|
|
|
|
package Business::CPI::Role::Exception; |
2
|
|
|
|
|
|
|
# ABSTRACT: Exceptions from the gateway |
3
|
1
|
|
|
1
|
|
6866
|
use Moo::Role; |
|
1
|
|
|
|
|
2
|
|
|
1
|
|
|
|
|
4
|
|
4
|
1
|
|
|
1
|
|
790
|
use Types::Standard qw/Int Str HashRef/; |
|
1
|
|
|
|
|
53924
|
|
|
1
|
|
|
|
|
11
|
|
5
|
1
|
|
|
1
|
|
1175
|
use Business::CPI::Util::Types qw/ExceptionType/; |
|
1
|
|
|
|
|
3
|
|
|
1
|
|
|
|
|
10
|
|
6
|
|
|
|
|
|
|
with 'Throwable'; |
7
|
|
|
|
|
|
|
|
8
|
|
|
|
|
|
|
our $VERSION = '0.922'; # 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__ |