errdefs

package
v0.1.13 Latest Latest
Warning

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

Go to latest
Published: Oct 13, 2025 License: MIT Imports: 0 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var ErrUpdateCancelled = NewCustomError(ErrTypeUpdateCancelled, "update cancelled by user")

Functions

func NewCustomError

func NewCustomError(errType ErrorType, message string) error

Types

type CustomError

type CustomError struct {
	Type    ErrorType
	Message string
}

func (*CustomError) Error

func (e *CustomError) Error() string

type ErrorType

type ErrorType int
const (
	ErrTypeNotLinux ErrorType = iota
	ErrTypeInvalidArchitecture
	ErrTypeUnsupportedDistribution
	ErrTypeUnsupportedVersion
	ErrTypeUpdateCancelled
	ErrTypeGeneric
)

Jump to

Keyboard shortcuts

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