errors

package
v1.0.11 Latest Latest
Warning

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

Go to latest
Published: Jun 27, 2020 License: MIT Imports: 1 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type GraphQLError

type GraphQLError struct {
	Message       string                 `json:"message"`
	Locations     []Location             `json:"locations,omitempty"`
	Path          []interface{}          `json:"path,omitempty"`
	Rule          string                 `json:"-"`
	ResolverError error                  `json:"-"`
	Extensions    map[string]interface{} `json:"extensions,omitempty"`
}

func New

func New(format string, arg ...interface{}) *GraphQLError

func (*GraphQLError) Error

func (err *GraphQLError) Error() string

type Location

type Location struct {
	Line   int `json:"line"`
	Column int `json:"column"`
}

func (Location) Before

func (a Location) Before(b Location) bool

type MultiError

type MultiError []*GraphQLError

func News

func News(format string, arg ...interface{}) MultiError

func (MultiError) Error

func (m MultiError) Error() string

Jump to

Keyboard shortcuts

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