Error is the standard graphql error type described in https://facebook.github.io/graphql/draft/#sec-Errors
type Error struct { Message string `json:"message"` Path []interface{} `json:"path,omitempty"` Locations []Location `json:"locations,omitempty"` Extensions map[string]interface{} `json:"extensions,omitempty"` Rule string `json:"-"` }
func ErrorLocf(file string, line int, col int, message string, args ...interface{}) *Error
func ErrorPathf(path []interface{}, message string, args ...interface{}) *Error
func ErrorPosf(pos *ast.Position, message string, args ...interface{}) *Error
func Errorf(message string, args ...interface{}) *Error
func WrapPath(path []interface{}, err error) *Error
func (err *Error) Error() string
func (err *Error) SetFile(file string)
type List []*Error
func (errs List) Error() string
type Location struct { Line int `json:"line,omitempty"` Column int `json:"column,omitempty"` }