Documentation ¶ Index ¶ Variables func Expand(errs []*graphql.QueryError) []*graphql.QueryError func WithIndex(err error, index int) error func WrongType(expected, actual interface{}) error type Errors func (e Errors) Err() error func (e Errors) Error() string 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 Source Files ¶ View all Source files errors.goexpand.goindexed.govalues.go Click to show internal directories. Click to hide internal directories.