errors

package
v2.0.0-...-cfe7cf8 Latest Latest
Warning

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

Go to latest
Published: Feb 6, 2022 License: Apache-2.0 Imports: 1 Imported by: 0

Documentation

Index

Constants

View Source
const (
	// WTF is panicked from code that should never be reached.
	WTF = InternalError("should never be called!")

	// Unimplemented is panicked from functions that aren't implemented yet.
	// They shouldn't happened outside frozen development.
	Unimplemented = InternalError("not implemented")

	// ConsistencyCheck is panicked when an internal consistency check fails.
	ConsistencyCheck = InternalError("consistency check failure")
)

Variables

This section is empty.

Functions

func Errorf

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

func Wrap

func Wrap(e interface{}, skip int) error

Wrap wraps errors. Translates backend nil *Error to nil error.

func WrapPrefix

func WrapPrefix(e interface{}, prefix string, skip int) error

WrapPrefix wraps errors. Translates backend nil *Error to nil error.

Types

type InternalError

type InternalError string

func (InternalError) Error

func (e InternalError) Error() string

Jump to

Keyboard shortcuts

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