exception

package
v2.0.0-...-5918b2a Latest Latest
Warning

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

Go to latest
Published: Apr 3, 2022 License: BSD-3-Clause Imports: 3 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func CheckErr

func CheckErr(err error, code int, msg string)

CheckErr if error is not nil, it will panic the code and msg

func Panic

func Panic(code int, msg string)

Panic a customer error

func ParseErr

func ParseErr(e interface{}) (code int, msg string)

ParseErr extract the code and message from the error

Types

type Error

type Error struct {
	Code int
	Msg  string
}

Error contains code and message

Jump to

Keyboard shortcuts

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