ExtErr

package
v0.0.2 Latest Latest
Warning

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

Go to latest
Published: Oct 17, 2022 License: Apache-2.0 Imports: 0 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Err

type Err = *ErrorStruct

Err 错误指针

func NewErr

func NewErr(msg string) Err

NewErr 新建错误

func (Err) Error

func (e Err) Error() string

返回错误信息,标准错误接口实现的方法

func (Err) ErrorCode

func (e Err) ErrorCode() int

ErrorCode 返回错误码

func (Err) SetError

func (e Err) SetError(err error)

SetError 从标准错误设置错误信息

func (Err) SetErrorCode

func (e Err) SetErrorCode(code int)

SetErrorCode 设置错误码

func (Err) SetMsg

func (e Err) SetMsg(msg string)

SetMsg 从标准错误设置错误信息

type ErrorStruct

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

ErrorStruct 错误结构

Jump to

Keyboard shortcuts

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