Documentation ¶
Index ¶
- func FormatFn(format string, errs ...error) func(a ...any) error
- func ValueFn(errs ...error) func(v any) error
- type Errorer
- func (e *Errorer) Add(errs ...error) *Errorer
- func (e Errorer) Error() string
- func (e Errorer) FormatFn(format string) func(a ...any) error
- func (e *Errorer) Is(err error) bool
- func (e Errorer) List() []string
- func (e *Errorer) MarshalJSON() ([]byte, error)
- func (e Errorer) String() string
- func (e Errorer) Sub(errs ...error) *Errorer
- func (e Errorer) Subf(format string, a ...any) *Errorer
- func (e *Errorer) UnmarshalJSON(data []byte) error
- func (e *Errorer) Unwrap() []error
- func (e Errorer) ValueFn() func(v any) error
- func (e Errorer) WithValue(v any) error
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
Types ¶
type Errorer ¶ added in v1.0.28
type Errorer struct {
Errors []error
}
func (Errorer) FormatFn ¶ added in v1.0.33
FormatFn takes a format string as the input and returns a function that accepts a list of input arguments which will be supplied to the format string to create a new instance with the created error appended to it's internal list.
func (Errorer) List ¶ added in v1.0.33
List returns the extracted error messages from the internal list of errors.
func (*Errorer) MarshalJSON ¶ added in v1.0.28
func (Errorer) Sub ¶ added in v1.0.33
Sub returns a new instance with the errs included in it's internal list.
func (Errorer) Subf ¶ added in v1.0.33
Sub returns a new instance with an error created using fmt.Errorf and appended internal list of errors.
func (*Errorer) UnmarshalJSON ¶ added in v1.0.28
Click to show internal directories.
Click to hide internal directories.