AshJsonApi.Error.UnacceptableMediaType exception (ash_json_api v1.4.30)

View Source

Returned when the client does not provide (via the Content-Type header) the correct json API media type: application/vnd.api+json

Summary

Functions

exception(args)

@spec exception(opts :: Keyword.t()) :: %AshJsonApi.Error.UnacceptableMediaType{
  __exception__: true,
  bread_crumbs: term(),
  class: term(),
  path: term(),
  splode: term(),
  stacktrace: term(),
  vars: term()
}

Create an Elixir.AshJsonApi.Error.UnacceptableMediaType without raising it.

Keys