Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
Types ¶
type AtomicError ¶
type AtomicError struct {
// contains filtered or unexported fields
}
AtomicError defines an atomic error.
type BatchError ¶
type BatchError struct {
// contains filtered or unexported fields
}
BatchError is an error that can hold multiple errors.
func (*BatchError) Add ¶
func (be *BatchError) Add(errs ...error)
Add adds one or more non-nil errors to the BatchError instance.
func (*BatchError) Err ¶
func (be *BatchError) Err() error
Err returns an error that represents all accumulated errors. It returns nil if there are no errors.
func (*BatchError) NotNil ¶
func (be *BatchError) NotNil() bool
NotNil checks if there is at least one error inside the BatchError.
Click to show internal directories.
Click to hide internal directories.