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
}
func NewLocatedError ¶
func NewSyntaxError ¶
type FormattedError ¶
type FormattedError struct {
Message string
Locations []location.SourceLocation
}
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 GQLFormattedErrorSlice ¶
type GQLFormattedErrorSlice []FormattedError
func (GQLFormattedErrorSlice) Len ¶
func (errs GQLFormattedErrorSlice) Len() int
func (GQLFormattedErrorSlice) Less ¶
func (errs GQLFormattedErrorSlice) Less(i, j int) bool
func (GQLFormattedErrorSlice) Swap ¶
func (errs GQLFormattedErrorSlice) Swap(i, j int)
Click to show internal directories.
Click to hide internal directories.