exception

package
v0.5.0 Latest Latest
Warning

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

Go to latest
Published: Apr 21, 2022 License: Apache-2.0 Imports: 3 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Catch

func Catch(handler func(Exception))

Catch Catch

func CatchCrash

func CatchCrash(handler func(Exception))

CatchCrash CatchCrash

func Throw

func Throw(code int, message string, args ...interface{})

Throw Throw

Types

type Exception

type Exception struct {
	// contains filtered or unexported fields
}

Exception Exception

func NewException

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

NewException NewException

func (Exception) Error

func (e Exception) Error() string

Error Error

func (*Exception) GetCause

func (e *Exception) GetCause() interface{}

GetCause GetCause

func (*Exception) GetCode

func (e *Exception) GetCode() int

GetCode 获取Code

func (*Exception) GetMessage

func (e *Exception) GetMessage() string

GetMessage GetMessage

func (*Exception) GetStackTrace

func (e *Exception) GetStackTrace() string

GetStackTrace GetStackTrace

func (*Exception) GetStackTraceLine

func (e *Exception) GetStackTraceLine(i int) string

GetStackTraceLine GetStackTraceLine

func (*Exception) IsCrash

func (e *Exception) IsCrash() bool

IsCrash IsCrash

Jump to

Keyboard shortcuts

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