errs

package
v1.0.8 Latest Latest
Warning

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

Go to latest
Published: Mar 5, 2026 License: MIT Imports: 0 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var DBError = NewError(999, "db error")
View Source
var ErrParam = NewError(400, "param error")
View Source
var ErrUnauthorized = NewError(401, "unauthorized")
View Source
var NoEventHandler = NewError(500, "no handler")

Functions

This section is empty.

Types

type Errors

type Errors struct {
	Code int    `json:"code"`
	Msg  string `json:"msg"`
}

func NewError

func NewError(code int, msg string) *Errors

func (*Errors) Error

func (e *Errors) Error() string

Jump to

Keyboard shortcuts

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