logo
Free, unlimited AI code reviews that run on commit
git-lrc git-lrc GitHub Install Now We'd appreciate a star git-lrc - Free, unlimited AI code reviews that run on commit | Product Hunt git-lrc - Free, unlimited AI code reviews that run on commit | Product Hunt

Net::Amazon::S3::Error::Handler::X - Throw error specific exception

Author

       Branislav Zahradník <barney@cpan.org>

Description

       Raise error specific exception.

   S3error
       For S3 errors exception it raises is instance of "Net::Amazon::S3::X::error-code".  AWS error code list
       can be found at <https://docs.aws.amazon.com/AmazonS3/latest/API/ErrorResponses.html#ErrorCodeList>

               my $s3 = Net::Amazon::S3->new (
                       error_handler_class => 'Net::Amazon::S3::Error::Handler::X',
                       ...
               );

               eval { do s3 operation; 1 } or do {
                       say 'access denied'
                               if $@->$Safe::Isa::_isa ('Net::Amazon::S3::X::AccessDenied');
                       ...
               };

Name

       Net::Amazon::S3::Error::Handler::X - Throw error specific exception

Version

       version 0.991

See Also