ExtErr

package
v0.0.10 Latest Latest
Warning

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

Go to latest
Published: Feb 21, 2023 License: Apache-2.0 Imports: 2 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) ErrorBytes added in v0.0.3

func (e Err) ErrorBytes() []byte

ErrorBytes 返回错误信息字节切片

func (Err) ErrorCode

func (e Err) ErrorCode() int

ErrorCode 返回错误码

func (Err) ErrorCodeString added in v0.0.3

func (e Err) ErrorCodeString() string

ErrorCodeString 返回错误码字符串

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