---
name: "Net::Amazon::S3::Error::Handler::X"
section: "3pm"
platform: "linux"
package: "libnet-amazon-s3-perl"
version: "0.991-1"
release: "Debian 13 (Trixie)"
platforms: ["linux"]
url: "https://new.carta.tech/Net::Amazon::S3::Error::Handler::X"
---

# Net::Amazon::S3::Error::Handler::X(3pm)

Throw error specific exception

## NAME

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

## VERSION

version 0.991

## DESCRIPTION

Raise error specific exception.

### S3 error

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');
                ...
        };
```

## AUTHOR

Branislav Zahradník \<barney@cpan.org\>

## COPYRIGHT AND LICENSE

This software is copyright (c) 2022 by Amazon Digital Services, Leon Brocard, Brad Fitzpatrick, Pedro Figueiredo, Rusty Conover, Branislav Zahradník.

This is free software; you can redistribute it and/or modify it under the same terms as the Perl 5 programming language system itself.
