NAME

Net::Async::Webservice::UPS::Exception

VERSION

version 1.1.2

DESCRIPTION

These classes are based on Throwable and StackTrace::Auto. The "as_string" method should return something readable, with a full stack trace. Their base class is Net::Async::Webservice::Common::Exception.

NAME

Net::Async::Webservice::UPS::Exception - exception classes for UPS

Classes

Net::Async::Webservice::UPS::Exception::BadPackage

exception thrown when a package is too big for UPS to carry

Attributes

package

The package object that's too big.

Methods

as_string

Shows the size of the package, and the stack trace.

Net::Async::Webservice::UPS::Exception::UPSError

exception thrown when UPS signals an error

Attributes

error

The error data structure extracted from the UPS response.

Methods

error_description

error_severity

error_code

error_location

retry_seconds

These just return the similarly-named fields from inside "error": ErrorDescription, ErrorSeverity, ErrorCode, ErrorLocation, MinimumRetrySeconds.

as_string

Mentions the description, severity, and code of the error, plus the stack trace.

AUTHORS

  • Gianni Ceccarelli <gianni.ceccarelli@net-a-porter.com>

  • Sherzod B. Ruzmetov <sherzodr@cpan.org>

COPYRIGHT AND LICENSE

This software is copyright (c) 2014 by Gianni Ceccarelli <gianni.ceccarelli@net-a-porter.com>.

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