ecto_shorts v1.1.0 EctoShorts.Actions.Error behaviour View Source

This module generates errors from actions it can be overridden by config by setting error module

Errors from Actions: [:not_found, :bad_request, :internal_server_error]

Link to this section Summary

Link to this section Types

Link to this type

t() View Source
t() ::
  %{code: atom(), message: String.t()}
  | %{code: atom(), message: String.t(), details: map()}

Link to this section Functions

Link to this function

call(code, message, details) View Source

Link to this function

create_error(code, message, details) View Source

Link to this section Callbacks

Link to this callback

create_error(atom, arg2, map) View Source
create_error(atom(), String.t(), map()) :: t()