errors

package
v0.2.1 Latest Latest
Warning

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

Go to latest
Published: Dec 11, 2025 License: MIT Imports: 5 Imported by: ? modules, 0 packages

The first number is the count of modules that contain a package that imports this one. The module count is a better indicator of popularity than the package count. A module with 100 importing packages is counted only once instead of 100 times, reflecting the fact that the choice to use the package was likely made only once, not 100 times.
A '?' means that the value hasn't been computed yet.

Documentation

Index

Constants

This section is empty.

Variables

View Source
var (
	ErrRetriable    = errors.New("retriable")
	ErrNonRetriable = errors.New("non retriable")

	ErrExternal  = errors.New("external")
	ErrCancelled = errors.New("cancelled")

	ErrBadGateway          = errors.New("bad gateway")
	ErrTimeout             = errors.New("timeout")
	ErrBadRequest          = errors.New("bad request")
	ErrPermissionDenied    = errors.New("permission denied")
	ErrForbidden           = errors.New("forbidden")
	ErrNotFound            = errors.New("not found")
	ErrConflict            = errors.New("conflict")
	ErrTooManyRequests     = errors.New("too many requests")
	ErrInternalServerError = errors.New("internal server error")
	ErrNotImplemented      = errors.New("not implemented")
	ErrServiceUnavailable  = errors.New("service unavailable")
	ErrPreconditionFailed  = errors.New("precondition failed")
)

Functions

func ErrFromGrpc

func ErrFromGrpc(err error) error

func GrpcFromError

func GrpcFromError(err error) codes.Code

func ToErrorFromHTTP

func ToErrorFromHTTP(status int) error

func ToHTTPFromError added in v0.1.0

func ToHTTPFromError(err error) int

Types

This section is empty.

Jump to

Keyboard shortcuts

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