dberr

package
v0.0.0-...-ae1e168 Latest Latest
Warning

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

Go to latest
Published: Sep 5, 2021 License: BSD-2-Clause Imports: 1 Imported by: 53

Documentation

Index

Constants

View Source
const (
	ErrorNil       errorType = ""
	ErrorUndefined errorType = "Unknown Error."

	// IO error
	ErrorIO    errorType = "IO error has occured, see log for more details."
	ErrorNoDoc errorType = "Document `%d` does not exist"

	// Document errors
	ErrorDocTooLarge errorType = "Document is too large. Max: `%d`, Given: `%d`"

	// Query input errors
	ErrorNeedIndex         errorType = "Please index %v and retry query %v."
	ErrorExpectingSubQuery errorType = "Expecting a vector of sub-queries, but %v given."
	ErrorExpectingInt      errorType = "Expecting `%s` as an integer, but %v given."
	ErrorMissing           errorType = "Missing `%s`"
)

Variables

This section is empty.

Functions

func Type

func Type(e error) errorType

Types

type Error

type Error struct {
	// contains filtered or unexported fields
}

func New

func New(err errorType, details ...interface{}) Error

func (Error) Error

func (e Error) Error() string

Jump to

Keyboard shortcuts

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