Ash.Error (ash v1.37.2) View Source

Tools and utilities used by Ash to manage and conform errors

Link to this section Summary

Link to this section Types

Specs

error_class() :: :invalid | :authorization | :framework | :unknown

Specs

t() :: struct()

Link to this section Functions

Link to this function

choose_error(errors, changeset_or_query \\ nil)

View Source
Link to this function

clear_stacktraces(error)

View Source
Link to this function

error_descriptions(errors)

View Source
Link to this function

error_messages(errors, custom_message \\ nil, stacktraces? \\ false)

View Source
Link to this function

flatten_preserving_keywords(list)

View Source

A utility to flatten a list, but preserve keyword list elements

Link to this function

to_error_class(values, opts \\ [])

View Source