Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type BatchError ¶
type BatchError struct {
// contains filtered or unexported fields
}
BatchError collects multiple errors from concurrent workers and can expose them either as one joined error or as a cloned slice.
func (*BatchError) Add ¶
func (be *BatchError) Add(err error)
Add records a non-nil error for later aggregation.
func (*BatchError) Err ¶
func (be *BatchError) Err() error
Err joins all recorded errors. It returns nil when no error was added.
func (*BatchError) Unwrap ¶
func (be *BatchError) Unwrap() []error
Unwrap returns a snapshot of the recorded errors in insertion order.
Click to show internal directories.
Click to hide internal directories.