Sumup.RequestError exception (Sumup v1.0.0)

Copy Markdown View Source

Exception wrapper around Sumup.Error, raised by bang (!) functions and by Sumup.Pagination.stream/2 (since Enumerable/Stream.resource/3 can only propagate failures by raising).

Summary

Types

t()

@type t() :: %Sumup.RequestError{__exception__: true, sumup_error: Sumup.Error.t()}

Functions

wrap(error)

@spec wrap(Sumup.Error.t()) :: t()

Wraps a Sumup.Error as a Sumup.RequestError exception.