WebService::PayPal::PaymentsAdvanced::Error::Generic - A generic error
version 0.000016
use Try::Tiny; use WebService::PayPal::PaymentsAdvanced; my $payments = WebService::PayPal::PaymentsAdvanced->new(...); try { $payments->create_secure_token(...); } catch { die $_ unless blessed $_; if ( $_->isa('WebService::PayPal::PaymentsAdvanced::Error::Generic') ) { log_generic_error( message => $_->message, params => $_->params, ); } # handle other exceptions };
This class represents a generic error. It extends Throwable::Error and adds one attribute of its own.
The $error->message(), and $error->stack_trace() methods are inherited from Throwable::Error.
$error->message()
$error->stack_trace()
Returns a HashRef of params which was received from PayPal.
HashRef
Olaf Alders <olaf@wundercounter.com>
This software is copyright (c) 2016 by MaxMind, Inc.
This is free software; you can redistribute it and/or modify it under the same terms as the Perl 5 programming language system itself.
To install WebService::PayPal::PaymentsAdvanced, copy and paste the appropriate command in to your terminal.
cpanm
cpanm WebService::PayPal::PaymentsAdvanced
CPAN shell
perl -MCPAN -e shell install WebService::PayPal::PaymentsAdvanced
For more information on module installation, please visit the detailed CPAN module installation guide.