Stable error shape returned by Medplum requests.
Summary
Types
Structured error returned by Medplum operations.
Error categories returned by configuration, auth, transport, and API failures.
Functions
Builds a new error struct with a generated message.
Types
@type t() :: %Medplum.Error{ __exception__: term(), body: term() | nil, message: String.t(), reason: term() | nil, status: non_neg_integer() | nil, type: type() }
Structured error returned by Medplum operations.
@type type() ::
:config_error
| :auth_failed
| :request_failed
| :api_error
| :invalid_response
Error categories returned by configuration, auth, transport, and API failures.