SelectoComponents.ErrorHandling.ErrorBuilder (selecto_components v0.4.5)

Builds normalized, stage-aware error maps for SelectoComponents.

Link to this section Summary

Link to this section Functions

Link to this function

build(error, opts \\ [])

@spec build(
  term(),
  keyword()
) :: map()
Link to this function

build_many(errors, opts \\ [])

@spec build_many(
  [term()],
  keyword()
) :: [map()]
Link to this function

category_label(arg1)

@spec category_label(atom()) :: String.t()
Link to this function

infer_stage_from_operation(arg1)

@spec infer_stage_from_operation(String.t() | nil) :: atom() | nil
Link to this function

normalize(error_info)

@spec normalize(map()) :: map()
Link to this function

operation_label(arg1)

@spec operation_label(String.t() | nil) :: String.t() | nil
Link to this function

stage_label(arg1)

@spec stage_label(atom()) :: String.t()