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

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]

Summary

Types

Callbacks

Link to this callback

create_error(atom, t, map)

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

Functions

Link to this function

call(code, message, details)

View Source
Link to this function

create_error(code, message, details)

View Source