errors

package
v2.4.0+incompatible Latest Latest
Warning

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

Go to latest
Published: Oct 24, 2018 License: GPL-3.0 Imports: 2 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var (
	// ErrDriverFailure is returned when the driver is malfunctioning.
	ErrDriverFailure = errors.NewKind("driver failure")

	// ErrSyntax is returned when driver cannot parse the source file.
	// Can be omitted for native driver implementations.
	ErrSyntax = errors.NewKind("syntax error")
)

Functions

func Join

func Join(errs []error) error

Join multiple errors into a single error value. If there are only one error, it will be returned directly. Zero or more than one error will be wrapped into ErrMulti.

Types

type ErrMulti

type ErrMulti struct {
	Errors []error
}

ErrMulti joins multiple errors.

func (*ErrMulti) Error

func (e *ErrMulti) Error() string

Jump to

Keyboard shortcuts

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