errors

package
Version: v0.5.3 Latest Latest
Warning

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

Go to latest
Published: Jan 29, 2019 License: BSD-3-Clause, GPL-2.0 Imports: 4 Imported by: 26

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

Source Files

Jump to

Keyboard shortcuts

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