apperrors

package
v0.0.0-...-f942f97 Latest Latest
Warning

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

Go to latest
Published: May 23, 2022 License: Apache-2.0 Imports: 3 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 {
	Append(string, ...interface{}) AppError
	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