apperrors

package
v0.0.0-...-7d69bf5 Latest Latest
Warning

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

Go to latest
Published: Jun 20, 2022 License: Apache-2.0 Imports: 1 Imported by: 5

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