errors

package
v0.0.678 Latest Latest
Warning

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

Go to latest
Published: Nov 21, 2026 License: Apache-2.0 Imports: 3 Imported by: 144 modules, 4,299 packages

The first number is the count of modules that contain a package that imports this one. The module count is a better indicator of popularity than the package count. A module with 100 importing packages is counted only once instead of 100 times, reflecting the fact that the choice to use the package was likely made only once, not 100 times.
A '?' means that the value hasn't been computed yet.

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Error

func Error(msg string) error

func Errorf

func Errorf(msg string, args ...any) error

func NewMultiError

func NewMultiError(errors ...error) error

func WrapComplexError

func WrapComplexError(cause, err error) error

func WrapError

func WrapError(cause error, msg string) error

func WrapErrorf

func WrapErrorf(cause error, msg string, args ...any) error

Types

type ComplexError

type ComplexError struct {
	Err   error
	Cause error
}

func (ComplexError) Error

func (e ComplexError) Error() string

func (ComplexError) ShortError

func (e ComplexError) ShortError() string

type MultiError

type MultiError struct {
	Errors []error
}

func (MultiError) Error

func (e MultiError) Error() string

type ShortenableError

type ShortenableError interface {
	error
	ShortError() string
}

type UserError

type UserError struct {
	Err error
}

func NewUserError

func NewUserError(message string) UserError

Jump to

Keyboard shortcuts

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