errors

package
v0.0.0-...-4d2de29 Latest Latest
Warning

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

Go to latest
Published: Mar 5, 2023 License: Apache-2.0 Imports: 4 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var (
	ErrInvalidUserName = errors.New("invalid user name")
	ErrUnableToResolve = errors.New("unable to resolve")
	ErrLoaderNotFound  = errors.New("loader not found")
)

Functions

func Expand

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

func WithIndex

func WithIndex(err error, index int) error

WithIndex attaches an array or slice index to the error. The data can be retreived using the Index() and Cause() method.

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

Jump to

Keyboard shortcuts

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