gqlerror

package
v0.0.0-...-e5cbba9 Latest Latest
Warning

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

Go to latest
Published: May 4, 2022 License: MIT Imports: 4 Imported by: 0

Documentation

Index

Constants

View Source
const ErrCodeLabel = "code"

Variables

View Source
var (
	ErrServiceUnavailable = newTyped("service unavailable", ServiceUnavailableType)
	ErrFileTooBig         = newTyped("max file size is 500b", BadRequestType)
	ErrInvalidPath        = newTyped("path cannot contain '..'", BadRequestType)
	ErrInvalidID          = newTyped("invalid id", BadRequestType)
	ErrNotYetSupported    = newTyped("not yet supported", ServiceUnavailableType)
	ErrNotFound           = newTyped("not found", NotFoundType)
	ErrDuplicateFile      = newTyped("file already exists on path", BadRequestType)
)

Functions

func Error

func Error(err error) error

Types

type ErrorType

type ErrorType string
var (
	DuplicatedType         ErrorType = "DUPLICATED"
	NotFoundType           ErrorType = "NOT_FOUND"
	ServiceUnavailableType ErrorType = "SERVICE_UNAVAILABLE"
	UnauthorizedType       ErrorType = "UNAUTHORIZED"
	BadRequestType         ErrorType = "BAD_REQUEST"
)

Jump to

Keyboard shortcuts

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