xerror

package
v1.0.0 Latest Latest
Warning

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

Go to latest
Published: Oct 11, 2021 License: MIT Imports: 8 Imported by: 1

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func DetailsToString

func DetailsToString(s *status.Status) string

DetailsToString 优雅输出detail中的堆栈信息

func New

func New(code Code, messages ...interface{}) error

New 输出标准错误信息或者覆盖

func NewError

func NewError(code Code, message string, errs ...interface{}) error

NewError 输出标准错误信息或者覆盖,并包裹附加错误信息用于日志输出辅助问题查找

Types

type Code

type Code interface {
	String() string
	GetCode() uint32
}

Jump to

Keyboard shortcuts

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