error

package
v1.0.4 Latest Latest
Warning

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

Go to latest
Published: Nov 25, 2019 License: MIT Imports: 1 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Throw

func Throw(code int, msg string)

Throw a BusinessError with panic Note: make sure to use this func in the call stack which has registered a defer to catch the panic

Types

type BusinessError

type BusinessError struct {
	Code int
	Msg  string
}

BusinessError struct

func (BusinessError) Error

func (e BusinessError) Error() string

Jump to

Keyboard shortcuts

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