SelectoComponents.ErrorHandling.ErrorCategorizer (selecto_components v0.3.12)

Categorizes and classifies errors that occur within SelectoComponents. Provides consistent error classification for proper display and handling.

Link to this section Summary

Functions

Categorizes an error and returns detailed classification.

Returns a user-friendly message for the categorized error.

Provides recovery suggestions based on error category.

Link to this section Functions

Link to this function

categorize(error)

@spec categorize(term()) :: map()

Categorizes an error and returns detailed classification.

Link to this function

format_message(map)

@spec format_message(map()) :: String.t()

Returns a user-friendly message for the categorized error.

Link to this function

recovery_suggestion(arg1)

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

Provides recovery suggestions based on error category.