Net/Amazon/S3/Error/Handler.pm

filter: Statementstmt 100% 6 / 6 Branchbran n/a Conditioncond n/a MC/DCmcdc n/a Subroutinesub 100% 1 / 1 Podpod n/a totaltotal 100% 7 / 7 SCAR 0.0
CC
1
Cov
100%
BEGIN
1.0
CRAP 1.0
« Net/Amazon/S3/Constraint/Etag.pm ↑ Summary Net/Amazon/S3/Operation/Bucket/Acl/Fetch.pm »
1 package Net::Amazon::S3::Error::Handler;
2 99 $Net::Amazon::S3::Error::Handler::VERSION = '0.991';
3 99 ▶use Moose;
Subroutine BEGIN: called CC=1 SCAR=0.0
4  
5 # ABSTRACT: A base class for S3 response error handler
6  
7 99 has s3 => (
8 is => 'ro',
9 isa => 'Net::Amazon::S3',
10 required => 1,
11 );
12  
13 sub handle_error;
14  
15 99 1;
16  
17 __END__
18  
19 =pod
20  
21 =encoding UTF-8
22  
23 =head1 NAME
24  
25 Net::Amazon::S3::Error::Handler - A base class for S3 response error handler
26  
27 =head1 VERSION
28  
29 version 0.991
30  
31 =head1 CONSTRUCTOR
32  
33 =over
34  
35 =item s3
36  
37 Instance of L<< Net::Amazon::S3 >>
38  
39 =back
40  
41 =head1 METHODS
42  
43 =head2 handle_error ($response)
44  
45 =head2 handle_error ($response, $request)
46  
47 Method will receive instance of L<< Net::Amazon::S3::Response >> sub-class.
48  
49 Method should return false (or throw exception) in case of error, true otherwise.
50  
51 =head1 AUTHOR
52  
53 Branislav Zahradník <barney@cpan.org>
54  
55 =head1 COPYRIGHT AND LICENSE
56  
57 This software is copyright (c) 2022 by Amazon Digital Services, Leon Brocard, Brad Fitzpatrick, Pedro Figueiredo, Rusty Conover, Branislav Zahradník.
58  
59 This is free software; you can redistribute it and/or modify it under
60 the same terms as the Perl 5 programming language system itself.
61  
62 =cut
« Net/Amazon/S3/Constraint/Etag.pm ↑ Summary Net/Amazon/S3/Operation/Bucket/Acl/Fetch.pm »