Documentation ¶
Index ¶
- func FieldASTsToNodeASTs(fieldASTs []*ast.Field) []ast.Node
- type Error
- func NewError(message string, nodes []ast.Node, stack string, source *source.Source, ...) *Error
- func NewErrorWithPath(message string, nodes []ast.Node, stack string, source *source.Source, ...) *Error
- func NewLocatedError(err interface{}, nodes []ast.Node) *Error
- func NewSyntaxError(s *source.Source, position int, description string) *Error
- type ExtendedError
- type FormattedError
- type FormattedErrors
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
Types ¶
type Error ¶
type Error struct { Message string Stack string Nodes []ast.Node Source *source.Source Positions []int Locations []location.SourceLocation OriginalError error Path []interface{} }
func NewErrorWithPath ¶
func NewLocatedError ¶
NewLocatedError creates a graphql.Error with location info @deprecated 0.4.18 Already exists in `graphql.NewLocatedError()`
func NewSyntaxError ¶
type ExtendedError ¶
type FormattedError ¶
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 ¶
func FormatError(err error) FormattedError
func FormatErrors ¶
func FormatErrors(errs ...error) []FormattedError
func NewFormattedError ¶
func NewFormattedError(message string) FormattedError
func (FormattedError) Error ¶
func (g FormattedError) Error() string
func (FormattedError) OriginalError ¶
func (g FormattedError) OriginalError() error
type FormattedErrors ¶
type FormattedErrors []FormattedError
func (FormattedErrors) Len ¶
func (errs FormattedErrors) Len() int
func (FormattedErrors) Less ¶
func (errs FormattedErrors) Less(i, j int) bool
func (FormattedErrors) Swap ¶
func (errs FormattedErrors) Swap(i, j int)
Click to show internal directories.
Click to hide internal directories.