errtype

package
v0.0.0-...-6e5c2bb Latest Latest
Warning

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

Go to latest
Published: Mar 5, 2024 License: Apache-2.0 Imports: 2 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type ErrEnum

type ErrEnum[T fmt.Stringer] struct {
	Enum    T
	Subject string
	Noun    string
	// contains filtered or unexported fields
}

func NewErrEnum

func NewErrEnum[T fmt.Stringer](enum T, subject string, noun string, details string) *ErrEnum[T]

func NewSimpleErrEnum

func NewSimpleErrEnum[T fmt.Stringer](enum T, details string) *ErrEnum[T]

func (*ErrEnum[T]) Error

func (e *ErrEnum[T]) Error() string

func (*ErrEnum[T]) Is

func (e *ErrEnum[T]) Is(err error) bool

type ErrList

type ErrList struct {
	Errors []error
}

func (*ErrList) Add

func (e *ErrList) Add(err error)

func (*ErrList) ErrOrNil

func (e *ErrList) ErrOrNil() error

func (*ErrList) Error

func (e *ErrList) Error() string

Jump to

Keyboard shortcuts

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