Documentation ¶
Index ¶
- Constants
- func BadRequest(format string, args ...interface{}) error
- func Incr(name string, tags ...stats.Tag)
- func IncrDefault(tags ...stats.Tag)
- func IsCanceled(err error) bool
- func NotFound(format string, args ...interface{}) error
- type BadRequestError
- type ConflictError
- type InsufficientStorageErr
- type NotFoundError
- type PayloadTooLargeError
- type RateLimitExceededErr
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 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 ¶
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
Click to show internal directories.
Click to hide internal directories.