Documentation ¶
Index ¶
Constants ¶
View Source
const ( LEVEL_WARNING errorLevel = iota LEVEL_FATAL )
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type ErrorDescriptor ¶ added in v0.12.0
type ErrorList ¶
type ErrorList []GQLError
func (ErrorList) GetErrors ¶ added in v0.12.0
func (o ErrorList) GetErrors() (r []ErrorStruct)
type ErrorLocation ¶
type ErrorLocation struct {
// contains filtered or unexported fields
}
type ErrorStruct ¶
type ErrorStruct struct { Code string `json:"-"` Message string `json:"message"` Locations []GQLErrorLocation `json:"locations,omitempty"` Path []interface{} `json:"path,omitempty"` Extensions ExtensionError `json:"extensions,omitempty"` }
type ExtensionError ¶
type ExtensionError map[string]interface{}
type Fatal ¶
type Fatal struct { GQLError ErrorStruct }
func NewFatal ¶
func NewFatal(message string, extensions ExtensionError) *Fatal
func (*Fatal) Error ¶ added in v0.12.0
func (o *Fatal) Error() (r ErrorStruct)
type GQLError ¶
type GQLError interface {
Error() ErrorStruct
}
func NewError ¶ added in v0.12.0
func NewError(err ErrorDescriptor, extensions ExtensionError) (r GQLError)
type GQLErrorLocation ¶
type Warning ¶
type Warning struct { GQLError ErrorStruct }
func NewWarning ¶
func NewWarning(message string, extensions ExtensionError) *Warning
func (*Warning) Error ¶
func (o *Warning) Error() (r ErrorStruct)
Click to show internal directories.
Click to hide internal directories.