NAME
CloudFlare::Client::Exception::Connection - CloudFlare API Connection Exception
VERSION
version 0.03
SYNOPSIS
Exception class for failures in the CloudFlare API connection
use CloudFlare::Client::Exception::Connection;
CloudFlare::Client::Exception::Connection::->throw(
message => 'HTTPS connection failure',
status => '404'
);
my $e = CloudFlare::Client::Exception::Connection::->new(
message => 'HTTPS connection failure',
status => '404'
);
$e->throw;
ATTRIBUTES
message
The error message thrown upstream, readonly.
status
The status code for the connection failure
METHODS
throw
On the class, throw a new exception
CloudFlare::Client::Exception::Connection::->throw(
message => 'HTTPS connection failure',
status => '404'
);
...
On an instance, throw that exception
$e->throw;
new
Construct a new exception
my $e = CloudFlare::Client::Exception::Connection::->throw(
message => 'HTTPS connection failure',
errorcode => '404'
);
INHERITANCE
See Throwable::Error
BUGS
Please report any bugs or feature requests to bug-cloudflare-client at rt.cpan.org
, or through the web interface at http://rt.cpan.org/NoAuth/ReportBug.html?Queue=CloudFlare-Client. I will be notified, and then you'll automatically be notified of progress on your bug as I make changes.
SUPPORT
You can find documentation for this module with the perldoc command.
perldoc CloudFlare::Client::Exception::Upstream
You can also look for information at:
DDFlare
RT: CPAN's request tracker (report bugs here)
AnnoCPAN: Annotated CPAN documentation
CPAN Ratings
Search CPAN
AUTHOR
Peter Roberts <me+dev@peter-r.co.uk>
COPYRIGHT AND LICENSE
This software is Copyright (c) 2014 by Peter Roberts.
This is free software, licensed under:
The MIT (X11) License