Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Nest

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.

    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

        type NestedError struct {
        	Path string
        	Err  error
        }

          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