errors

package
v1.0.3 Latest Latest
Warning

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

Go to latest
Published: Dec 24, 2025 License: AGPL-3.0 Imports: 4 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var ErrClosed = errors.New("closed")
View Source
var ErrIdle = errors.New("Idle")

Functions

func As

func As(err error, target any) bool

func Is

func Is(err error, target error) bool

func Join

func Join(errs ...error) error

func New

func New(values ...interface{}) *errorWrap

Types

type AuthError

type AuthError struct {
	// contains filtered or unexported fields
}

type LeftToRightError

type LeftToRightError struct {
	// contains filtered or unexported fields
}

func NewLeftToRightError

func NewLeftToRightError(err error) LeftToRightError

func (LeftToRightError) Error

func (e LeftToRightError) Error() string

func (LeftToRightError) Is

func (e LeftToRightError) Is(target error) bool

func (LeftToRightError) Unwrap

func (e LeftToRightError) Unwrap() error

type RightToLeftError

type RightToLeftError struct {
	// contains filtered or unexported fields
}

func NewRightToLeftError

func NewRightToLeftError(err error) RightToLeftError

func (RightToLeftError) Error

func (e RightToLeftError) Error() string

func (RightToLeftError) Unwrap

func (e RightToLeftError) Unwrap() error

Jump to

Keyboard shortcuts

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