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 ¶
Add appends an error to the error list if the it not nil
func (*ErrorList) Err ¶
Err returns whether or not an error list is an error.
func (*ErrorList) Error ¶
Error satisfies the error interface.
Source Files ¶
- Version
- v1.12.0 (latest)
- Published
- Apr 8, 2025
- Platform
- linux/amd64
- Imports
- 1 packages
- Last checked
- 2 days ago –
Tools for package owners.