exception

package
v0.0.0-...-59dd6a2 Latest Latest
Warning

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

Go to latest
Published: Nov 13, 2023 License: Apache-2.0 Imports: 8 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var Mode = "production"

Functions

func Catch

func Catch(recovered interface{}, err ...error) error

func CatchDebug

func CatchDebug()

func CatchPrint

func CatchPrint()

Types

type Exception

type Exception struct {
	Message string      `json:"message"`
	Code    int         `json:"code"`
	Context interface{} `json:"context"`
}

func Err

func Err(err error, code int) *Exception

func New

func New(message string, code int, args ...interface{}) *Exception

func (*Exception) Ctx

func (exception *Exception) Ctx(context interface{}) *Exception

func (Exception) Print

func (exception Exception) Print()

func (Exception) String

func (exception Exception) String() string

func (Exception) Throw

func (exception Exception) Throw()

Jump to

Keyboard shortcuts

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