Pristine.SDK.Error (Pristine v0.3.1)

Copy Markdown View Source

SDK-facing error contract for request execution.

Summary

Types

error_type()

@type error_type() :: Pristine.Error.error_type()

t()

@type t() :: Pristine.Error.t()

Functions

connection_error(reason)

@spec connection_error(term()) :: t()

See Pristine.Error.connection_error/1.

connection_error(reason, opts)

@spec connection_error(term(), keyword()) :: t()

See Pristine.Error.connection_error/2.

from_response(response)

@spec from_response(Pristine.SDK.Response.t()) :: t()

See Pristine.Error.from_response/1.

from_response(response, opts)

@spec from_response(Pristine.SDK.Response.t(), keyword()) :: t()

See Pristine.Error.from_response/2.

message(error)

@spec message(t()) :: String.t()

See Pristine.Error.message/1.

retriable?(error)

@spec retriable?(t()) :: boolean()

See Pristine.Error.retriable?/1.

timeout_error()

@spec timeout_error() :: t()

See Pristine.Error.timeout_error/0.

validation_error(reason, body, opts)

@spec validation_error(term(), term(), keyword()) :: t()

See Pristine.Error.validation_error/3.