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 modules, 3 packages

The first number is the count of modules that contain a package that imports this one. The module count is a better indicator of popularity than the package count. A module with 100 importing packages is counted only once instead of 100 times, reflecting the fact that the choice to use the package was likely made only once, not 100 times.
A '?' means that the value hasn't been computed yet.

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