View Source EctoShorts.Actions.Error behaviour (ecto_shorts v2.2.1)

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 section Callbacks

Link to this callback

create_error(atom, t, map)

View Source


create_error(atom(), String.t(), map()) :: t()

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