func Nest(path string, err error) error
Create a NestedError with the given path. If err is a NestedError, prepend the path to it. If err is an AggregateError, recursively Nest each error.
An error type for treating multiple errors as a single error.
type AggregateError []error
func (err AggregateError) Error() string
Error is part of the error interface.
An error type for labeling errors on deeply nested matchers.
type NestedError struct { Path string Err error }
func (e *NestedError) Error() string
A stateful matcher that nests other matchers within it and preserves the error types of the nested matcher failures.
type NestingMatcher interface { types.GomegaMatcher // Returns the failures of nested matchers. Failures() []error }