AppleMapsServer.Error exception (apple_maps_server v0.2.0)

Copy Markdown View Source

Structured error returned from the Apple Maps Server API.

Summary

Types

t()

@type t() :: %AppleMapsServer.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()