errorx

package
v1.0.7 Latest Latest
Warning

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

Go to latest
Published: May 10, 2024 License: MIT Imports: 1 Imported by: 0

Documentation

Index

Constants

View Source
const (
	OK = "0000"
)

Variables

This section is empty.

Functions

func New

func New(code, msg string) error

New 新建Err

Types

type Error

type Error struct {
	Code    string
	Message string
}

Error err

func FromError

func FromError(err error) (*Error, bool)

FromError 解析Err

func (*Error) Error

func (e *Error) Error() string

Error 实现error接口

Jump to

Keyboard shortcuts

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