Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type MultiError ¶
type MultiError []error
The MultiError type implements the error interface, and contains the Errors used to construct it.
func (*MultiError) Add ¶
func (es *MultiError) Add(err error)
Add adds the error to the error list if it is not nil.
func (MultiError) Err ¶
func (es MultiError) Err() error
Err returns the error list as an error or nil if it is empty.
type NonNilMultiError ¶ added in v0.19.0
type NonNilMultiError MultiError
func (NonNilMultiError) Error ¶ added in v0.19.0
func (es NonNilMultiError) Error() string
Returns a concatenated string of the contained errors.
type SyncMultiError ¶ added in v0.28.0
type SyncMultiError struct {
// contains filtered or unexported fields
}
SyncMultiError is a thread-safe implementation of MultiError.
func (*SyncMultiError) Add ¶ added in v0.28.0
func (es *SyncMultiError) Add(err error)
Add adds the error to the error list if it is not nil.
func (*SyncMultiError) Err ¶ added in v0.28.0
func (es *SyncMultiError) Err() error
Err returns the error list as an error or nil if it is empty.
Click to show internal directories.
Click to hide internal directories.