errors

package
v1.0.0 Latest Latest
Warning

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

Go to latest
Published: Mar 23, 2020 License: Apache-2.0 Imports: 4 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func MaybePanic

func MaybePanic(err error)

func Panic

func Panic(msg string)

Types

type Error

type Error struct {
	Code int    `json:"code"`
	Msg  string `json:"msg"`
	Time string `json:"time"`
	File string `json:"file"`
	Line int    `json:"line"`
}

func BadRequestError

func BadRequestError(msg ...string) Error

400

func InternalServerError

func InternalServerError(msg ...string) Error

500

func NoPrivError

func NoPrivError(msg ...string) Error

403

func NotLoginError

func NotLoginError(msg ...string) Error

401

Jump to

Keyboard shortcuts

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