dberr

package
v0.0.0-...-6d4a0cd Latest Latest
Warning

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

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

Documentation

Index

Constants

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

Variables

This section is empty.

Functions

func IsConflict

func IsConflict(err error) bool

func IsNotFound

func IsNotFound(err error) bool

Types

type Error

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

func AlreadyExists

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

func Conflict

func Conflict(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