errfmt

package
v0.1.1 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Jun 10, 2026 License: MIT Imports: 6 Imported by: 0

Documentation

Overview

Package errfmt provides user-friendly error formatting with actionable suggestions.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func ErrorContext

func ErrorContext(err error) []string

ErrorContext builds context from an error chain for debugging.

func FormatError

func FormatError(err error) string

FormatError formats an error for user-friendly display with actionable suggestions.

func IsAuthError

func IsAuthError(err error) bool

IsAuthError returns true if the error is authentication-related.

func IsNotFoundError

func IsNotFoundError(err error) bool

IsNotFoundError returns true if the error indicates a resource was not found.

func IsRateLimitError

func IsRateLimitError(err error) bool

IsRateLimitError returns true if the error indicates rate limiting.

func WrapWithSuggestion

func WrapWithSuggestion(err error, suggestion string) error

WrapWithSuggestion wraps an error with a custom suggestion.

Types

This section is empty.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL