apperrors

package
v0.5.0 Latest Latest
Warning

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

Go to latest
Published: Aug 8, 2018 License: Apache-2.0 Imports: 1 Imported by: 0

Documentation

Index

Constants

View Source
const (
	CodeInternal                 = 1
	CodeNotFound                 = 2
	CodeAlreadyExists            = 3
	CodeWrongInput               = 4
	CodeUpstreamServerCallFailed = 5
)

Variables

This section is empty.

Functions

This section is empty.

Types

type AppError

type AppError interface {
	Code() int
	Error() string
}

func AlreadyExists

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

func Internal

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

func NotFound

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

func UpstreamServerCallFailed

func UpstreamServerCallFailed(format string, a ...interface{}) AppError

func WrongInput

func WrongInput(format string, a ...interface{}) AppError

Jump to

Keyboard shortcuts

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