apperrors

package
v0.0.0-...-cc7cbc4 Latest Latest
Warning

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

Go to latest
Published: Dec 21, 2021 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 {
	Append(string, ...interface{}) AppError
	Code() int
	Error() string
}

func AlreadyExists

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

func AppendError

func AppendError(wrapped AppError, new AppError) 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