errors

package
v0.1.0-alpha.1 Latest Latest
Warning

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

Go to latest
Published: Jan 22, 2025 License: MIT Imports: 2 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type CLIError

type CLIError struct {
	Type    ErrorType
	Message string
	Cause   error
	Hints   []string
}

CLIError represents a structured error with context

func NewAuthError

func NewAuthError(msg string, cause error, hints ...string) *CLIError

NewAuthError creates a new authentication error with helpful hints

func NewConfigError

func NewConfigError(msg string, cause error, hints ...string) *CLIError

NewConfigError creates a new configuration error with helpful hints

func NewDeploymentError

func NewDeploymentError(msg string, cause error, hints ...string) *CLIError

NewDeploymentError creates a new deployment error with helpful hints

func NewValidationError

func NewValidationError(msg string, cause error, hints ...string) *CLIError

NewValidationError creates a new validation error with helpful hints

func (*CLIError) Error

func (e *CLIError) Error() string

type ErrorType

type ErrorType int

ErrorType represents different categories of errors

const (
	ValidationError ErrorType = iota
	ConfigError
	DeploymentError
	NetworkError
	AuthenticationError
)

Jump to

Keyboard shortcuts

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