errors

package
v0.3.7 Latest Latest
Warning

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

Go to latest
Published: Jun 14, 2020 License: MIT Imports: 3 Imported by: 3

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func AppError

func AppError(errorCode ErrorCode, a ...interface{}) error

AppError - App specific Error

func ValidationError

func ValidationError(id, format string, a ...interface{}) error

ValidationError - Unprocessable Entity

Types

type ErrorCode

type ErrorCode int

ErrorCode for app

const (
	// EC1 represents there is an error1
	EC1 ErrorCode = iota
	// EC2 represents there is an error2
	EC2
	// EC3 represents there is an error3
	EC3
	// EC4 represents there is an error4
	EC4
	// SME SendMailError
	SME
	// DBE DatabaseError
	DBE
	// PSE PubSubError
	PSE
)

type ErrorDetail

type ErrorDetail struct {
	ID     string
	Detail string
	Code   int32
}

ErrorDetail for app

Jump to

Keyboard shortcuts

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