SelectoComponents.ErrorHandling.ErrorCategorizer (selecto_components v0.4.5)

Backward-compatible wrapper around the normalized error builder.

Link to this section Summary

Link to this section Functions

Link to this function

categorize(error, opts \\ [])

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

format_message(error_info)

@spec format_message(map()) :: String.t()
Link to this function

infer_stage_from_operation(operation)

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

recovery_suggestion(error_info)

@spec recovery_suggestion(map()) :: String.t() | nil