exception

package
v1.1.1 Latest Latest
Warning

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

Go to latest
Published: Nov 24, 2021 License: GPL-3.0 Imports: 0 Imported by: 0

Documentation

Index

Constants

View Source
const (
	EXCEPTION = 1
)

Variables

This section is empty.

Functions

This section is empty.

Types

type Exception

type Exception struct {
	C int         `json:"code"`
	M string      `json:"message"`
	D interface{} `json:"data"`
}

func New

func New() *Exception

func (*Exception) Code

func (this *Exception) Code(code int) *Exception

func (*Exception) Data

func (this *Exception) Data(data interface{}) *Exception

func (*Exception) Message

func (this *Exception) Message(message string) *Exception

Jump to

Keyboard shortcuts

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