package errors
import "github.com/onsi/gomega/gstruct/errors"
Index ¶
Functions ¶
func Nest ¶
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.
Types ¶
type AggregateError ¶
type AggregateError []error
An error type for treating multiple errors as a single error.
func (AggregateError) Error ¶
func (err AggregateError) Error() string
Error is part of the error interface.
type NestedError ¶
An error type for labeling errors on deeply nested matchers.
func (*NestedError) Error ¶
func (e *NestedError) Error() string
type NestingMatcher ¶
type NestingMatcher interface { types.GomegaMatcher // Returns the failures of nested matchers. Failures() []error }
A stateful matcher that nests other matchers within it and preserves the error types of the nested matcher failures.
Source Files ¶
- Version
- v1.37.0 (latest)
- Published
- Apr 2, 2025
- Platform
- linux/amd64
- Imports
- 3 packages
- Last checked
- 2 hours ago –
Tools for package owners.