AppleMusicFeed.Error exception (apple_music_feed v0.3.0)

Copy Markdown View Source

Structured exception for Apple Music Feed API failures.

Summary

Functions

Create an error from an HTTP response.

Types

t()

@type t() :: %AppleMusicFeed.Error{
  __exception__: true,
  details: map() | nil,
  message: String.t(),
  status: integer() | nil
}

Functions

from_http(status, body)

@spec from_http(integer(), binary() | map() | nil) :: t()

Create an error from an HTTP response.