Represents an error returned by the Plain API or during client execution.
The :type field indicates the error category:
:mutation_error— a Plain API mutation returned an application-level error. Check:code,:message, and:fieldsfor details.:forbidden— authentication or authorization failed.:bad_request— the request was malformed.:internal_server_error— the Plain API returned a 500.:graphql_error— the response contained a GraphQL error outside a mutation.:unknown— an unexpected client-side error occurred.
Summary
Types
@type error_type() ::
:mutation_error
| :forbidden
| :bad_request
| :internal_server_error
| :graphql_error
| :unknown
@type t() :: %ExPlain.Error{ code: String.t() | nil, fields: [field_error()] | nil, message: String.t(), type: error_type() }