JsonApiClient v3.0.2 JsonApiClient.RequestError exception View Source

A Fatal Error during an API request

Fields

  • message - a short description of the error
  • original_error - The original error, if this error wraps one thrown by another library
  • status - The HTTP status code of the request, if any
  • attributes - Custom attributes.

Link to this section Summary

Functions

Callback implementation for Exception.exception/1

Callback implementation for Exception.message/1

Link to this section Types

Link to this type t() View Source
t() :: %JsonApiClient.RequestError{__exception__: term, attributes: map, message: String.t | nil, original_error: any, status: integer | nil}

Link to this section Functions

Link to this function exception(msg) View Source
exception(String.t) :: Exception.t
exception(keyword) :: Exception.t

Callback implementation for Exception.exception/1.

Callback implementation for Exception.message/1.