Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Accumulator ¶
type Accumulator struct {
// contains filtered or unexported fields
}
Accumulator allows storing a series of errors and then concatenating their string representations into one big error.
func (*Accumulator) AccumulateError ¶
func (ea *Accumulator) AccumulateError(err error)
AccumulateError stores an error to be reported later.
func (*Accumulator) Error ¶
func (ea *Accumulator) Error() error
Error concatenates the string representations of all stored errors and returns it as a single error.
Click to show internal directories.
Click to hide internal directories.