errors

package
v0.0.1 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Apr 22, 2020 License: MIT Imports: 7 Imported by: 5

Documentation

Index

Constants

This section is empty.

Variables

View Source
var (
	ErrInvalidArguments = errors.New("runtime: invalid arguments")
	ErrWrongType        = errors.New("runtime: wrong type for Get method")
)

Functions

func NewError

func NewError(status *status.Status) error

func ToGraphQLError

func ToGraphQLError(err error) error

Types

type BadRequest

type BadRequest struct {
	Type            string            `json:"type"`
	FieldViolations []*FieldViolation `json:"fieldViolations"`
}

type DebugInfo

type DebugInfo struct {
	Type         string   `json:"type"`
	StackEntries []string `json:"stackEntries"`
}

type Error

type Error struct {
	// contains filtered or unexported fields
}

func (*Error) Error

func (e *Error) Error() string

func (*Error) Extensions

func (e *Error) Extensions() map[string]interface{}

type FieldViolation

type FieldViolation struct {
	Field       string `json:"field"`
	Description string `json:"description"`
}

type Help

type Help struct {
	Type  string  `json:"type"`
	Links []*Link `json:"links"`
}
type Link struct {
	Description string `json:"description"`
	URL         string `json:"url"`
}

type LocalizedMessage

type LocalizedMessage struct {
	Locale  string `json:"locale"`
	Message string `json:"message"`
}

type PreconditionFailure

type PreconditionFailure struct {
	Violations []*PreconditionFailureViolations `json:"violations"`
}

type PreconditionFailureViolations

type PreconditionFailureViolations struct {
	Type        string `json:"type"`
	Subject     string `json:"subject"`
	Description string `json:"description"`
}

type QuotaFailure

type QuotaFailure struct {
	Violations []*QuotaFailureViolation `json:"violations"`
}

type QuotaFailureViolation

type QuotaFailureViolation struct {
	Subject     string `json:"subject"`
	Description string `json:"description"`
}

type RequestInfo

type RequestInfo struct {
	RequestID   string `json:"requestId"`
	ServingData string `json:"servingData"`
}

type ResourceInfo

type ResourceInfo struct {
	ResourceType string `json:"resourceType"`
	ResourceName string `json:"resourceName"`
	Owner        string `json:"owner"`
	Description  string `json:"description"`
}

type RetryInfo

type RetryInfo struct {
	RetryDelay time.Duration `json:"retryDelay"`
}

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL