definitionError

package
v0.7.0 Latest Latest
Warning

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

Go to latest
Published: Dec 19, 2022 License: GPL-3.0 Imports: 0 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type ErrorList

type ErrorList []GQLError

type ErrorLocation

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

type ErrorStruct

type ErrorStruct struct {
	Message    string             `json:"message"`
	Locations  []GQLErrorLocation `json:"locations,omitempty"`
	Path       []interface{}      `json:"path,omitempty"`
	Extensions ExtensionError     `json:"extensions,omitempty"`
}

type ExtensionError

type ExtensionError map[string]interface{}

type Fatal

type Fatal struct {
	GQLError
	ErrorStruct
}

func NewFatal

func NewFatal(message string, extensions ExtensionError) *Fatal

type GQLError

type GQLError interface {
	GetError() ErrorStruct
}

type GQLErrorLocation

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

type Warning

type Warning struct {
	GQLError
	ErrorStruct
}

func NewWarning

func NewWarning(message string, extensions ExtensionError) *Warning

func (*Warning) Error

func (o *Warning) Error() (r ErrorStruct)

Jump to

Keyboard shortcuts

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