CloudKit.Error exception (cloud_kit v0.3.0)

Copy Markdown View Source

Structured error returned from the CloudKit API.

Summary

Functions

Create an error from an HTTP response.

Types

t()

@type t() :: %CloudKit.Error{
  __exception__: true,
  details: term(),
  message: String.t(),
  status: non_neg_integer() | nil
}

Functions

from_http(status, body)

@spec from_http(non_neg_integer(), term()) :: t()

Create an error from an HTTP response.