errs

package
v0.0.9 Latest Latest
Warning

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

Go to latest
Published: Feb 16, 2024 License: MIT Imports: 4 Imported by: 0

Documentation

Index

Constants

View Source
const (
	// these error types are handy when using errors-go
	ErrTypeTemporary = "Temporary"
	ErrTypePermanent = "Permanent"
)

Variables

This section is empty.

Functions

func BadRequest

func BadRequest(format string, args ...interface{}) error

func Incr

func Incr(name string, tags ...stats.Tag)

Incr increments an error metric, along with the default error metric

func IncrDefault

func IncrDefault(tags ...stats.Tag)

IncrDefault increments the default error metric

func IsCanceled

func IsCanceled(err error) bool

func NotFound

func NotFound(format string, args ...interface{}) error

Types

type BadRequestError

type BadRequestError baseError

func (BadRequestError) Error

func (e BadRequestError) Error() string

type ConflictError

type ConflictError baseError

func (ConflictError) Error

func (e ConflictError) Error() string

type InsufficientStorageErr

type InsufficientStorageErr baseError

func (InsufficientStorageErr) Error

func (e InsufficientStorageErr) Error() string

type NotFoundError

type NotFoundError baseError

func (NotFoundError) Error

func (e NotFoundError) Error() string

type PayloadTooLargeError

type PayloadTooLargeError baseError

func (PayloadTooLargeError) Error

func (e PayloadTooLargeError) Error() string

type RateLimitExceededErr

type RateLimitExceededErr baseError

func (RateLimitExceededErr) Error

func (e RateLimitExceededErr) Error() string

Jump to

Keyboard shortcuts

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