custom_errors

package
v0.0.0-...-7909d78 Latest Latest
Warning

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

Go to latest
Published: Jan 14, 2025 License: MIT Imports: 0 Imported by: 0

Documentation

Index

Constants

View Source
const (
	ERR_CODE_AUTHORIZATION
	ERR_CODE_Database
	ERR_CODE_Marshal
	ERR_CODE_BodyRequired
	ERR_CODE_NotFound
	ERR_CODE_NotValid
	ERR_CODE_REQUIRED_FIELD
	ERR_CODE_Exists
	ERR_CODE_Redis
	ERR_CODE_RabbitMQ
)

Variables

View Source
var ERRORS = map[int]string{
	ERR_CODE_AUTHORIZATION:  "authorization error",
	ERR_CODE_Database:       "database error",
	ERR_CODE_Marshal:        "marshal error",
	ERR_CODE_BodyRequired:   "body required",
	ERR_CODE_NotFound:       "not found",
	ERR_CODE_NotValid:       "not valid",
	ERR_CODE_REQUIRED_FIELD: "required field is missing",
	ERR_CODE_Exists:         "already exists",
	ERR_CODE_Redis:          "redis error",
	ERR_CODE_RabbitMQ:       "rabbitmq error",
}

Functions

This section is empty.

Types

This section is empty.

Jump to

Keyboard shortcuts

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