errors

package module
v0.0.0-...-ed95116 Latest Latest
Warning

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

Go to latest
Published: Jun 11, 2025 License: MIT Imports: 11 Imported by: 0

README

TODO

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Contains

func Contains(err, target error) bool

func Is

func Is(err, target error) bool

func IsNot

func IsNot(err, target error) bool

func Join

func Join(errs []error, sep string) error

func JoinToString

func JoinToString(errs []error, sep string) (result string)

func Match

func Match(err error) bool

func NotContains

func NotContains(err, target error) bool

Types

type Err

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

func New

func New(args ...any) *Err

func NewSkipCaller

func NewSkipCaller(skipCaller int, args ...any) *Err

func NewSkipCallerf

func NewSkipCallerf(skipCaller int, format string, args ...any) *Err

func Newf

func Newf(format string, args ...any) *Err

func Wrap

func Wrap(err error, msg ...any) *Err

func WrapSkipCaller

func WrapSkipCaller(err error, skip int, msg ...any) *Err

func WrapSkipCallerf

func WrapSkipCallerf(err error, skip int, format string, msg ...any) *Err

func Wrapf

func Wrapf(err error, format string, msg ...any) *Err

func (*Err) Cause

func (e *Err) Cause() error

func (*Err) Error

func (e *Err) Error() string

func (*Err) File

func (e *Err) File() string

func (*Err) Func

func (e *Err) Func() string

func (*Err) Line

func (e *Err) Line() int

func (*Err) Message

func (e *Err) Message() string

func (*Err) PrintCause

func (e *Err) PrintCause()

func (*Err) PrintStackTrace

func (e *Err) PrintStackTrace()

func (*Err) Stack

func (e *Err) Stack() string

func (*Err) String

func (e *Err) String() string

Jump to

Keyboard shortcuts

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