errors

package
v1.0.0 Latest Latest
Warning

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

Go to latest
Published: Oct 31, 2022 License: MIT Imports: 1 Imported by: 0

Documentation

Index

Constants

View Source
const (
	StatusOK                  = errors.OK
	StatusDelivered           = errors.Delivered
	StatusPending             = errors.Pending
	StatusRemote              = errors.Remote
	StatusWrongPartition      = errors.WrongPartition
	StatusBadRequest          = errors.BadRequest
	StatusUnauthenticated     = errors.Unauthenticated
	StatusInsufficientCredits = errors.InsufficientCredits
	StatusUnauthorized        = errors.Unauthorized
	StatusNotFound            = errors.NotFound
	StatusNotAllowed          = errors.NotAllowed
	StatusConflict            = errors.Conflict
	StatusBadSignerVersion    = errors.BadSignerVersion
	StatusBadTimestamp        = errors.BadTimestamp
	StatusBadUrlLength        = errors.BadUrlLength
	StatusIncompleteChain     = errors.IncompleteChain
	StatusInsufficientBalance = errors.InsufficientBalance
	StatusInternalError       = errors.InternalError
	StatusUnknownError        = errors.UnknownError
	StatusEncodingError       = errors.EncodingError
	StatusFatalError          = errors.FatalError
)

Variables

This section is empty.

Functions

func As

func As(err error, target interface{}) bool

func Is

func Is(err, target error) bool

func NotFound

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

func Unknown

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

func Unwrap

func Unwrap(err error) error

func Wrap

func Wrap(code Status, err error) error

Types

type Error

type Error = errors.Error

func Format

func Format(code Status, format string, args ...interface{}) *Error

func FormatWithCause added in v1.0.0

func FormatWithCause(code Status, cause error, format string, args ...interface{}) *Error

func New

func New(code Status, v interface{}) *Error

type Status

type Status = errors.Status

Jump to

Keyboard shortcuts

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