The London Perl and Raku Workshop takes place on 26th Oct 2024. If your company depends on Perl, please consider sponsoring and/or attending.

NAME

Net::Stripe::Simple::Error - general error class for Net::Stripe::Simple

DESCRIPTION

This is a subclass of Net::Stripe::Simple::Data. It has no constructor but rather is constructed by Net::Stripe::Simple. It is guaranteed to have a _trace parameter.

It's stringification method differs from its parent's in that it stringifies to a concatenation of its message and type and will report its param and code attributes if these are available. The default stringification, for an error with no specified message or type, is

Error: unknown - [no message]

The general stringification pattern is

  sprintf 'Error: %s - %s', $type, $message;

with 'unknown' reported as the type when the type is unspecified and '[no message]' as the message.

NAME

Net::Stripe::Simple::Error - general error class for Net::Stripe::Simple

METHODS

trace

Returns the stringification of the _trace parameter, which is a Devel::StackTrace trace which omits frames in Net::Stripe::Simple.

AUTHORS

  • Grant Street Group <developers@grantstreet.com>

  • David F. Houghton <dfhoughton@gmail.com>

COPYRIGHT AND LICENSE

This software is copyright (c) 2014 by Grant Street Group.

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

AUTHORS

  • Grant Street Group <developers@grantstreet.com>

  • David F. Houghton <dfhoughton@gmail.com>

COPYRIGHT AND LICENSE

This software is copyright (c) 2014 by Grant Street Group.

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