Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type DefaultPanicHandler ¶ added in v0.0.8
type DefaultPanicHandler struct{}
DefaultPanicHandler is the default PanicHandler
func (*DefaultPanicHandler) MakePanicError ¶ added in v0.0.8
func (h *DefaultPanicHandler) MakePanicError(ctx context.Context, value interface{}) *QueryError
MakePanicError creates a new QueryError from a panic that occurred during execution
type PanicHandler ¶ added in v0.0.8
type PanicHandler interface {
MakePanicError(ctx context.Context, value interface{}) *QueryError
}
PanicHandler is the interface used to create custom panic errors that occur during query execution
type QueryError ¶
type QueryError struct { Err error `json:"-"` // Err holds underlying if available Message string `json:"message"` Locations []Location `json:"locations,omitempty"` Path []interface{} `json:"path,omitempty"` Rule string `json:"-"` ResolverError error `json:"-"` Extensions map[string]interface{} `json:"extensions,omitempty"` }
func Errorf ¶
func Errorf(format string, a ...interface{}) *QueryError
func (*QueryError) Error ¶
func (err *QueryError) Error() string
func (*QueryError) Unwrap ¶ added in v0.0.8
func (err *QueryError) Unwrap() error
Click to show internal directories.
Click to hide internal directories.