package gqlerror
import "github.com/open-policy-agent/opa/internal/gqlparser/gqlerror"
Index ¶
- type Error
- func ErrorLocf(file string, line int, col int, message string, args ...interface{}) *Error
- func ErrorPathf(path ast.Path, 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 ast.Path, err error) *Error
- func (err *Error) Error() string
- func (err *Error) SetFile(file string)
- func (err Error) Unwrap() error
- type List
- func (errs List) As(target interface{}) bool
- func (errs List) Error() string
- func (errs List) Is(target error) bool
- type Location
Types ¶
type Error ¶
type Error struct { Message string `json:"message"` Path ast.Path `json:"path,omitempty"` Locations []Location `json:"locations,omitempty"` Extensions map[string]interface{} `json:"extensions,omitempty"` Rule string `json:"-"` // contains filtered or unexported fields }
Error is the standard graphql error type described in https://facebook.github.io/graphql/draft/#sec-Errors
func ErrorLocf ¶
func ErrorPathf ¶
func ErrorPosf ¶
func Errorf ¶
func WrapPath ¶
func (*Error) Error ¶
func (*Error) SetFile ¶
func (Error) Unwrap ¶
type List ¶
type List []*Error
func (List) As ¶
func (List) Error ¶
func (List) Is ¶
type Location ¶
Source Files ¶
- Version
- v1.4.2 (latest)
- Published
- May 2, 2025
- Platform
- linux/amd64
- Imports
- 5 packages
- Last checked
- 7 hours ago –
Tools for package owners.