X3m.System.Response (X3m System v0.7.5) View Source

Link to this section Summary

Link to this section Types

Specs

t() ::
  :ok
  | {:ok, any()}
  | {:ok, any(), integer()}
  | {:created, any()}
  | {:created, any(), integer()}
  | {:service_unavailable, atom()}
  | {:service_timeout, atom(), String.t(), non_neg_integer()}
  | {:validation_error, map()}
  | {:missing_id, atom() | String.t()}
  | {:error, any()}

Link to this section Functions

Specs

created(any()) :: {:created, any()}

Specs

error(any()) :: {:error, any()}

Specs

missing_id(atom() | String.t()) :: {:missing_id, atom() | String.t()}

Specs

ok() :: :ok

Specs

ok(any()) :: {:ok, any()}
Link to this function

service_timeout(msg_name, req_id, timeout)

View Source

Specs

service_timeout(atom(), String.t(), non_neg_integer()) ::
  {:service_timeout, atom(), String.t(), non_neg_integer()}
Link to this function

service_unavailable(msg_name)

View Source

Specs

service_unavailable(atom()) :: {:service_unavailable, atom()}

Specs

unauthorized(String.t()) :: {:unauthorized, String.t()}
Link to this function

validation_error(request)

View Source

Specs

validation_error(map()) :: {:validation_error, map()}