Spotify Web API v0.4.0 Spotify.Error View Source

An object containing error information.

Spotify Docs

Link to this section Summary

Types

A short description of the cause of the error

The HTTP status code (also returned in the response header; see Response Status Codes for more information)

t()

The full Error object

Functions

Returns each Object Models’ model for json decoding

Link to this section Types

A short description of the cause of the error.

Link to this type status() View Source
status() :: integer()

The HTTP status code (also returned in the response header; see Response Status Codes for more information).

Link to this type t() View Source
t() :: %Spotify.Error{message: Spotify.Error.message() | nil, status: Spotify.Error.status() | nil}

The full Error object.

Contains all the values listed in the Spotify Docs

Link to this section Functions

Returns each Object Models’ model for json decoding.

This callback is passed into Poison.decode :as option for formatting incoming json as structs. Each Object Model should implement it, and nest other Object Models’ as functions in their own as needed.

Callback implementation for Spotify.ObjectModel.as/0.