dberrors

package
v0.0.0-...-1c44903 Latest Latest
Warning

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

Go to latest
Published: Jul 3, 2020 License: Apache-2.0 Imports: 1 Imported by: 0

Documentation

Index

Constants

View Source
const (
	CodeInternal      = 1
	CodeNotFound      = 2
	CodeAlreadyExists = 3
)

Variables

This section is empty.

Functions

This section is empty.

Types

type Error

type Error interface {
	Append(string, ...interface{}) Error
	Code() int
	Error() string
}

func AlreadyExists

func AlreadyExists(format string, a ...interface{}) Error

func Internal

func Internal(format string, a ...interface{}) Error

func NotFound

func NotFound(format string, a ...interface{}) Error

Jump to

Keyboard shortcuts

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