errors

package
v0.2.0-test.3 Latest Latest
Warning

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

Go to latest
Published: Jan 5, 2026 License: MIT Imports: 3 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func IsRetryable

func IsRetryable(err error) bool

IsRetryable checks if an error is retryable

func ProviderError

func ProviderError(provider string, operation string, err error) error

ProviderError enhances provider-specific errors with context

func SimplifyError

func SimplifyError(err error) error

SimplifyError simplifies complex error messages for users

func WrapCommandNotFound

func WrapCommandNotFound(command string, err error) error

WrapCommandNotFound wraps command not found errors with helpful suggestions

Types

type CommandError

type CommandError struct {
	Command    string
	ExitCode   int
	Message    string
	Suggestion string
}

CommandError represents a command execution error

func (CommandError) Error

func (e CommandError) Error() string

type ConfigError

type ConfigError struct {
	Field      string
	Value      interface{}
	Message    string
	Suggestion string
}

ConfigError represents a configuration error with helpful context

func (ConfigError) Error

func (e ConfigError) Error() string

type UserError

type UserError struct {
	Message    string
	Suggestion string
	Details    string
	Err        error
}

UserError represents an error that should be shown to the user with helpful context

func (UserError) Error

func (e UserError) Error() string

func (UserError) Unwrap

func (e UserError) Unwrap() error

Jump to

Keyboard shortcuts

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