errors

package
v0.0.0-...-c72a9d5 Latest Latest
Warning

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

Go to latest
Published: May 27, 2019 License: MIT Imports: 4 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var (
	UnableToResolve = New("unable to resolve")
)

Functions

func Errorf

func Errorf(format string, args ...interface{}) error

func Expand

func Expand(errs []*errors.QueryError) []*errors.QueryError

func New

func New(message string) error

New is convenience method so we don't have to fight with package imports.

func WithIndex

func WithIndex(err error, i int) error

WithIndex attaches an array or slice index to the error. The data can be retreived by asserting the `Index` and `Cause` behaviors on the error.

func WrongType

func WrongType(expected, actual interface{}) error

Types

type Errors

type Errors []error

func (Errors) Err

func (e Errors) Err() error

func (Errors) Error

func (e Errors) Error() string

func (Errors) Slice

func (e Errors) Slice() []error

Jump to

Keyboard shortcuts

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