Tinkex.Types.RequestFailedResponse (Tinkex v0.3.4)

View Source

Response indicating a request has failed.

Mirrors Python tinker.types.RequestFailedResponse.

Summary

Functions

Parse from JSON map.

Create a new RequestFailedResponse.

Types

t()

@type t() :: %Tinkex.Types.RequestFailedResponse{
  category: Tinkex.Types.RequestErrorCategory.t(),
  error: String.t()
}

Functions

from_json(map)

@spec from_json(map()) :: t()

Parse from JSON map.

new(error, category)

Create a new RequestFailedResponse.