Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type AggregatedError ¶
type AggregatedError struct { // Errors are contained errors Errors []error }
AggregatedError is an error contains multiple errors
func (*AggregatedError) Add ¶
func (e *AggregatedError) Add(err error) bool
Add adds one error and returns true if the error is added
func (*AggregatedError) AddErr ¶
func (e *AggregatedError) AddErr(err error) error
AddErr explicitly adds one error If error is nil, nothing happens If error is AggregatedError, the contained errors are merged
func (*AggregatedError) AddMany ¶
func (e *AggregatedError) AddMany(errs ...error) *AggregatedError
AddMany adds arbitrary number of errors
func (*AggregatedError) Aggregate ¶
func (e *AggregatedError) Aggregate() error
Aggregate returns AggregatedError if it contains some errors, or returns nil
Click to show internal directories.
Click to hide internal directories.