errors

package
v1.0.4 Latest Latest
Warning

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

Go to latest
Published: Feb 9, 2022 License: Apache-2.0 Imports: 3 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var ErrBadRequest = errors.New("BadRequestError")
View Source
var ErrForbidden = errors.New("ForbiddenError")
View Source
var ErrInternalServer = errors.New("InternalServerError")
View Source
var ErrNotFound = errors.New("NotFoundError")
View Source
var ErrNotImplemented = errors.New("NotImplementedError")
View Source
var ErrUnauthenticated = errors.New("UnauthenticatedError")

Functions

func IsClientSideError

func IsClientSideError(err error) bool

Types

type ResolverError

type ResolverError interface {
	error
	Extensions() map[string]interface{}
}

func Error

func Error(err error, kv ...string) ResolverError

type SturdyGraphqlError

type SturdyGraphqlError struct {
	// contains filtered or unexported fields
}

func (*SturdyGraphqlError) Error

func (e *SturdyGraphqlError) Error() string

func (*SturdyGraphqlError) Extensions

func (e *SturdyGraphqlError) Extensions() map[string]interface{}

func (*SturdyGraphqlError) Is

func (e *SturdyGraphqlError) Is(target error) bool

func (*SturdyGraphqlError) OriginalError

func (e *SturdyGraphqlError) OriginalError() error

func (*SturdyGraphqlError) Unwrap

func (e *SturdyGraphqlError) Unwrap() error

Jump to

Keyboard shortcuts

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