myError

package
v1.1.6 Latest Latest
Warning

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

Go to latest
Published: Feb 3, 2021 License: MIT Imports: 3 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Error

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

func New

func New(format string, args ...interface{}) *Error

func NewWithCode added in v1.0.11

func NewWithCode(code int32, format string, args ...interface{}) *Error

func Warp

func Warp(err error, format string, args ...interface{}) *Error

func WarpWithCode added in v1.0.11

func WarpWithCode(err error, code int32, format string, args ...interface{}) *Error

func (*Error) Error

func (e *Error) Error() string

func (*Error) GetCode added in v1.0.11

func (e *Error) GetCode() int32

func (*Error) GetMsg added in v1.0.5

func (e *Error) GetMsg() []string

func (*Error) GetTopMsg added in v1.1.0

func (e *Error) GetTopMsg() string

func (*Error) GetWhere added in v1.0.5

func (e *Error) GetWhere() []Func

type Func added in v1.1.0

type Func struct {
	File     string
	Line     int
	FuncName string
}

Jump to

Keyboard shortcuts

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