errors

package
v1.3.0 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Jan 5, 2018 License: MIT Imports: 3 Imported by: 0

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.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL