error

package
v1.31.4 Latest Latest
Warning

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

Go to latest
Published: Jun 23, 2024 License: MIT Imports: 3 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var (
	ErrBadRequest       = New(400, "错误的请求参数", "bad request")
	ErrInternal         = New(500, "系统内部错误", "internal server error")
	ErrUnimplemented    = New(501, "功能尚未实现", "not implemented yet")
	ErrOssUnavailable   = New(505, "OSS不可用", "OSS not available")
	ErrCodeExisted      = New(550, "已存在相同编码", "code existed")
	ErrCodeNotFound     = New(551, "未找到该编码", "code not found")
	ErrWrongPassword    = New(560, "原密码错误", "wrong password")
	ErrMismatchPassword = New(561, "两次输入的密码不匹配", "passwords mismatch")
	ErrDatabase         = New(562, "数据库内部错误", "db error")
	ErrNoSuchObject     = New(563, "对象不存在", "no such object")
	ErrPermissionDenied = New(564, "对象不存在或无权查看", "no such object or no permission")
)

Functions

func New

func New(code int, cnMsg string, enMsg string) *bizError

Types

This section is empty.

Jump to

Keyboard shortcuts

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