error

package
v0.0.9 Latest Latest
Warning

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

Go to latest
Published: Jul 9, 2023 License: MIT Imports: 5 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func New

func New(code int64, err error) error

func NewWithApiError

func NewWithApiError(err ApiError) error

Types

type ApiError

type ApiError struct {
	ErrCode int64  `json:"errcode"`
	ErrMsg  string `json:"errmsg"`
}

ApiError 微信Api返回的通用错误

type Error

type Error struct {
	Code int64 `json:"code"`
	Err  error `json:"error"`
}

Error 统一错误

func Convert

func Convert(err error) Error

Convert 错误转换

func (Error) Error

func (e Error) Error() string

Jump to

Keyboard shortcuts

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