line |
stmt |
bran |
cond |
sub |
pod |
time |
code |
1
|
|
|
|
|
|
|
$Net::Amazon::S3::X::VERSION = '0.991'; |
2
|
|
|
|
|
|
|
# ABSTRACT: Net::Amazon::S3 exceptions |
3
|
|
|
|
|
|
|
|
4
|
|
|
|
|
|
|
use Moose; |
5
|
1
|
|
|
1
|
|
987
|
use Moose::Meta::Class; |
|
1
|
|
|
|
|
2
|
|
|
1
|
|
|
|
|
7
|
|
6
|
1
|
|
|
1
|
|
6085
|
|
|
1
|
|
|
|
|
2
|
|
|
1
|
|
|
|
|
182
|
|
7
|
|
|
|
|
|
|
has request => ( |
8
|
|
|
|
|
|
|
is => 'ro', |
9
|
|
|
|
|
|
|
); |
10
|
|
|
|
|
|
|
|
11
|
|
|
|
|
|
|
has response => ( |
12
|
|
|
|
|
|
|
is => 'ro', |
13
|
|
|
|
|
|
|
handles => [ |
14
|
|
|
|
|
|
|
'error_code', |
15
|
|
|
|
|
|
|
'error_message', |
16
|
|
|
|
|
|
|
'http_response', |
17
|
|
|
|
|
|
|
], |
18
|
|
|
|
|
|
|
); |
19
|
|
|
|
|
|
|
|
20
|
|
|
|
|
|
|
my %exception_map; |
21
|
|
|
|
|
|
|
my ($class, @exceptions) = @_; |
22
|
|
|
|
|
|
|
|
23
|
12
|
|
|
12
|
|
33
|
for my $exception (@exceptions) { |
24
|
|
|
|
|
|
|
next if exists $exception_map{$exception}; |
25
|
12
|
|
|
|
|
161
|
Moose::Meta::Class->create ( |
26
|
10
|
100
|
|
|
|
34
|
$exception_map{$exception} = __PACKAGE__ . "::$exception", |
27
|
|
|
|
|
|
|
superclasses => [ __PACKAGE__ ], |
28
|
5
|
|
|
|
|
54
|
); |
29
|
|
|
|
|
|
|
} |
30
|
|
|
|
|
|
|
} |
31
|
|
|
|
|
|
|
|
32
|
|
|
|
|
|
|
my ($self, $exception, @params) = @_; |
33
|
|
|
|
|
|
|
|
34
|
|
|
|
|
|
|
$self->import ($exception); |
35
|
10
|
|
|
10
|
0
|
3169
|
|
36
|
|
|
|
|
|
|
$exception_map{$exception}->new (@params); |
37
|
10
|
|
|
|
|
33
|
} |
38
|
|
|
|
|
|
|
|
39
|
10
|
|
|
|
|
11898
|
1; |
40
|
|
|
|
|
|
|
|
41
|
|
|
|
|
|
|
|
42
|
|
|
|
|
|
|
=pod |
43
|
|
|
|
|
|
|
|
44
|
|
|
|
|
|
|
=encoding UTF-8 |
45
|
|
|
|
|
|
|
|
46
|
|
|
|
|
|
|
=head1 NAME |
47
|
|
|
|
|
|
|
|
48
|
|
|
|
|
|
|
Net::Amazon::S3::X - Net::Amazon::S3 exceptions |
49
|
|
|
|
|
|
|
|
50
|
|
|
|
|
|
|
=head1 VERSION |
51
|
|
|
|
|
|
|
|
52
|
|
|
|
|
|
|
version 0.991 |
53
|
|
|
|
|
|
|
|
54
|
|
|
|
|
|
|
=head1 AUTHOR |
55
|
|
|
|
|
|
|
|
56
|
|
|
|
|
|
|
Branislav Zahradník <barney@cpan.org> |
57
|
|
|
|
|
|
|
|
58
|
|
|
|
|
|
|
=head1 COPYRIGHT AND LICENSE |
59
|
|
|
|
|
|
|
|
60
|
|
|
|
|
|
|
This software is copyright (c) 2022 by Amazon Digital Services, Leon Brocard, Brad Fitzpatrick, Pedro Figueiredo, Rusty Conover, Branislav Zahradník. |
61
|
|
|
|
|
|
|
|
62
|
|
|
|
|
|
|
This is free software; you can redistribute it and/or modify it under |
63
|
|
|
|
|
|
|
the same terms as the Perl 5 programming language system itself. |
64
|
|
|
|
|
|
|
|
65
|
|
|
|
|
|
|
=cut |