exception

package
v0.0.0-...-32b1917 Latest Latest
Warning

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

Go to latest
Published: Dec 28, 2021 License: Apache-2.0 Imports: 3 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Exception

type Exception interface {
	Error() string
	Code() int32
	WithCode(code int32) Exception
	WithExtendMsg(ext string) Exception
	WithError(err error) Exception
	WithMsg(msg string) Exception
	ToError() error
}

func New

func New(code int32, msg string) Exception

func NewByErr

func NewByErr(code int32, e error) Exception

Jump to

Keyboard shortcuts

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