ExStreamClient.Model.APIError (ExStreamClient v0.1.7)

View Source

Schema representing a APIError

Summary

Functions

Components could just be enums that are typed - so we need to decode those as enums as they will just be stings

Types

t()

@type t() :: %ExStreamClient.Model.APIError{
  code: integer(),
  details: [integer()],
  duration: String.t(),
  exception_fields: %{optional(String.t()) => String.t()} | nil,
  message: String.t(),
  more_info: String.t(),
  status_code: integer(),
  unrecoverable: boolean() | nil
}

Functions

decode(map)

Components could just be enums that are typed - so we need to decode those as enums as they will just be stings

nested_components()