CloudFlare::Client::Exception::Upstream(3pm)

CloudFlare::Client::Exception::Upstream3pm

Upstream cloudflare api exception

Usage

    use CloudFlare::Client::Exception::Upstream;
    CloudFlare::Client::Exception::Upstream::->throw(
        message   => 'Bad things occured',
        errorCode => 'E_MAXAPI',
    );
    my $e = CloudFlare::Client::Exception::Upstream::->new(
        message   => 'Bad things happened',
        errorcode => 'E_MAXAPI',
    );
    $e->throw;

Version

version v0.55.4

Attributes

message

The error message thrown upstream, readonly

errorCode

The error code thrown upstream, readonly. Valid values are undef, E_UNAUTH, E_INVLDINPUT or E_MAXAPI. Readonly

Methods

throw

On the class, throw a new exception

    CloudFlare::Client::Exception::Upstream::->throw(
        message   => 'Bad things occured',
        errorCode => 'E_MAXAPI',
    );
    ...

On an instance, throw that exception

    $e->throw;

new

Construct a new exception

    my $e = CloudFlare::Client::Exception::Upstream::->new(
        message   => 'Bad things happened',
        errorcode => 'E_MAXAPI',
    );

Support

Perldoc

You can find documentation for this module with the perldoc command.

  perldoc CloudFlare::Client

Websites

The following websites have more information about this module, and may be of help to you. As always, in addition to those websites please use your favorite search engine to discover more resources.

•

MetaCPAN

A modern, open-source CPAN search engine, useful to view POD in HTML format.

<http://metacpan.org/release/CloudFlare-Client>

Email

You can email the author of this module at "[email protected]" asking for help with any problems you have.

Source Code

The code is open to the world, and available for you to hack on. Please feel free to browse it and play with it, or whatever. If you want to contribute patches, please send me a diff or prod me to pull from your repository :)

<https://github.com/pwr22/cloudflare-client>

  git clone git://github.com/pwr22/cloudflare-client.git

Bugs

Please report any bugs or feature requests on the bugtracker website https://github.com/pwr22/cloudflare-client/issues

When submitting a bug or request, please include a test-file or a patch to an existing test-file that illustrates the bug or desired feature.

Author

Peter Roberts <[email protected]>

From libcloudflare-client-perl 0.55.4-1 in Debian 10 (Buster). Parsed by carta from the page's man source.