PropertyDamage.Error (PropertyDamage v0.2.0)
View SourceUser-friendly error formatting and common error types.
This module provides helpful error messages that guide users toward fixing problems rather than just reporting them.
Summary
Functions
Formats an error reason into a user-friendly message.
Formats a configuration error with suggestions.
Formats a warning with context.
Types
Functions
@spec format(term(), error_context()) :: String.t()
Formats an error reason into a user-friendly message.
Takes the raw error reason from execution and returns a formatted string with context and suggestions for fixing the issue.
Formats a configuration error with suggestions.
Formats a warning with context.