Documentation ¶
Index ¶
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 }
func NewLocatedError ¶
NewLocatedError creates a graphql.Error with location info @deprecated 0.4.18 Already exists in `graphql.NewLocatedError()`
func NewSyntaxError ¶
type FormattedError ¶
type FormattedError struct { Message string `json:"message"` Locations []location.SourceLocation `json:"locations"` }
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
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.