graphql: github.com/graphql-go/graphql/gqlerrors Index | Files

package gqlerrors

import "github.com/graphql-go/graphql/gqlerrors"

Index

Package Files

error.go formatted.go located.go sortutil.go syntax.go

func FieldASTsToNodeASTs Uses

func FieldASTsToNodeASTs(fieldASTs []*ast.Field) []ast.Node

type Error Uses

type Error struct {
    Message       string
    Stack         string
    Nodes         []ast.Node
    Source        *source.Source
    Positions     []int
    Locations     []location.SourceLocation
    OriginalError error
    Path          []interface{}
}

func NewError Uses

func NewError(message string, nodes []ast.Node, stack string, source *source.Source, positions []int, origError error) *Error

func NewErrorWithPath Uses

func NewErrorWithPath(message string, nodes []ast.Node, stack string, source *source.Source, positions []int, path []interface{}, origError error) *Error

func NewLocatedError Uses

func NewLocatedError(err interface{}, nodes []ast.Node) *Error

NewLocatedError creates a graphql.Error with location info @deprecated 0.4.18 Already exists in `graphql.NewLocatedError()`

func NewSyntaxError Uses

func NewSyntaxError(s *source.Source, position int, description string) *Error

func (Error) Error Uses

func (g Error) Error() string

implements Golang's built-in `error` interface

type ExtendedError Uses

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

type FormattedError Uses

type FormattedError struct {
    Message    string                    `json:"message"`
    Locations  []location.SourceLocation `json:"locations"`
    Path       []interface{}             `json:"path,omitempty"`
    Extensions map[string]interface{}    `json:"extensions,omitempty"`
    // contains filtered or unexported fields
}

func FormatError Uses

func FormatError(err error) FormattedError

func FormatErrors Uses

func FormatErrors(errs ...error) []FormattedError

func NewFormattedError Uses

func NewFormattedError(message string) FormattedError

func (FormattedError) Error Uses

func (g FormattedError) Error() string

func (FormattedError) OriginalError Uses

func (g FormattedError) OriginalError() error

type FormattedErrors Uses

type FormattedErrors []FormattedError

func (FormattedErrors) Len Uses

func (errs FormattedErrors) Len() int

func (FormattedErrors) Less Uses

func (errs FormattedErrors) Less(i, j int) bool

func (FormattedErrors) Swap Uses

func (errs FormattedErrors) Swap(i, j int)

Package gqlerrors imports 9 packages (graph) and is imported by 122 packages. Updated 2019-02-21. Refresh now. Tools for package owners.