ex_api v1.0.0-rc.2 ExApi.Error View Source

Helper module for managing errors.

Link to this section Summary

Functions

Auto generates error message and adds it into struct

Creates error and calls prepare/1 function

Link to this section Functions

Link to this function prepare(error) View Source
prepare(struct) :: struct

Auto generates error message and adds it into struct.

Link to this function prepare(error, data) View Source
prepare(module, Keyword.t) :: struct

Creates error and calls prepare/1 function.