Paypal.Common.Error (Paypal v0.1.1)
View SourceWhen something goes wrong, Paypal is replying us with an error message and this is the struct for retrieving this kind of errors.
Summary
Types
@type t() :: %Paypal.Common.Error{ debug_id: String.t() | nil, details: [Paypal.Common.Error.Details.t()], links: [Paypal.Common.Link.t()], message: String.t() | nil, name: String.t() | nil }
The information given by Paypal for each error is as follows:
debug_id
is the ID for debugging the error.details
is a list of details about the errors.links
is the list of links (HATEOAS).message
is the error message to try to understand why it failed.name
is the error name.