package errlist

import "github.com/influxdata/influxdb/cmd/influx_tools/internal/errlist"

Index

Types

type ErrorList

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

ErrorList is a simple error aggregator to return multiple errors as one.

func NewErrorList

func NewErrorList() *ErrorList

NewErrorList returns an empty *ErrorList

func (*ErrorList) Add

func (el *ErrorList) Add(err error)

Add appends an error to the error list if the it not nil

func (*ErrorList) Err

func (el *ErrorList) Err() error

Err returns whether or not an error list is an error.

func (*ErrorList) Error

func (el *ErrorList) Error() string

Error satisfies the error interface.

Source Files

errlist.go

Version
v1.12.0 (latest)
Published
Apr 8, 2025
Platform
linux/amd64
Imports
1 packages
Last checked
2 days ago

Tools for package owners.