errors

package
v0.6.2 Latest Latest
Warning

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

Go to latest
Published: Jul 18, 2022 License: BSD-3-Clause Imports: 4 Imported by: 36

Documentation

Index

Constants

This section is empty.

Variables

View Source
var Errors map[string]ErrorFmter = map[string]ErrorFmter{
	"not-found":           NotFound,
	"not-found-in-bucket": NotFoundInBucket,
	"invalid-key":         InvalidKey,
	"tst-error":           TSTError,
	"negative-size":       NegativeSize,
	"bptree-error":        BpTreeError,
}
View Source
var SkipLogging map[string]bool

Functions

func BpTreeError

func BpTreeError(a ...interface{}) error

func Errorf

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

func InvalidKey

func InvalidKey(a ...interface{}) error

func Logf

func Logf(level, format string, args ...interface{})

func NegativeSize

func NegativeSize(a ...interface{}) error

func NotFound

func NotFound(a ...interface{}) error

func NotFoundInBucket

func NotFoundInBucket(a ...interface{}) error

func TSTError

func TSTError(a ...interface{}) error

Types

type Error

type Error struct {
	Errs  []error
	Stack []byte
}

func (*Error) Chain

func (e *Error) Chain(err error) error

func (*Error) Error

func (e *Error) Error() string

func (*Error) String

func (e *Error) String() string

type ErrorFmter

type ErrorFmter func(a ...interface{}) error

Jump to

Keyboard shortcuts

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