errorer

package
v1.0.35 Latest Latest
Warning

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

Go to latest
Published: Jun 20, 2024 License: MIT Imports: 3 Imported by: 5

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func FormatFn added in v1.0.33

func FormatFn(format string, errs ...error) func(a ...any) error

func ValueFn added in v1.0.33

func ValueFn(errs ...error) func(v any) error

Types

type Errorer added in v1.0.28

type Errorer struct {
	Errors []error
}

func Errorf

func Errorf(format string, a ...any) *Errorer

func FromList added in v1.0.33

func FromList(errs ...error) *Errorer

func New added in v1.0.28

func New(message string) *Errorer

func (*Errorer) Add added in v1.0.33

func (e *Errorer) Add(errs ...error) *Errorer

func (Errorer) Error added in v1.0.28

func (e Errorer) Error() string

func (Errorer) FormatFn added in v1.0.33

func (e Errorer) FormatFn(format string) func(a ...any) error

func (*Errorer) Is added in v1.0.33

func (e *Errorer) Is(err error) bool

func (Errorer) List added in v1.0.33

func (e Errorer) List() []string

func (*Errorer) MarshalJSON added in v1.0.28

func (e *Errorer) MarshalJSON() ([]byte, error)

func (Errorer) String added in v1.0.28

func (e Errorer) String() string

func (Errorer) Sub added in v1.0.33

func (e Errorer) Sub(errs ...error) *Errorer

func (Errorer) Subf added in v1.0.33

func (e Errorer) Subf(format string, a ...any) *Errorer

func (*Errorer) UnmarshalJSON added in v1.0.28

func (e *Errorer) UnmarshalJSON(data []byte) error

func (*Errorer) Unwrap added in v1.0.28

func (e *Errorer) Unwrap() []error

func (Errorer) ValueFn added in v1.0.33

func (e Errorer) ValueFn() func(v any) error

func (Errorer) WithValue added in v1.0.33

func (e Errorer) WithValue(v any) error

Jump to

Keyboard shortcuts

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