MikrotikApi.Error (mikrotik_api v0.3.4)

View Source

Error struct returned by MikrotikApi functions.

Fields

  • status - HTTP status code (integer) or nil for transport errors
  • reason - Atom or string describing the error type (e.g., :http_error, :transport_error)
  • details - Additional error details (response body, error message, etc.)

Summary

Types

t()

@type t() :: %MikrotikApi.Error{
  details: term(),
  reason: atom() | String.t(),
  status: integer() | nil
}