xerror

package
v0.0.1 Latest Latest
Warning

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

Go to latest
Published: Feb 2, 2025 License: Apache-2.0 Imports: 3 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func New

func New(format string, args ...interface{}) error

New 创建一个新的自定义错误,包含堆栈信息

func NewWithCaller

func NewWithCaller(format string, args ...interface{}) error

func Wrap

func Wrap(err error, format string, args ...interface{}) error

Wrap 包裹其他错误,用于构造多级错误,包含堆栈信息

func WrapWithCaller

func WrapWithCaller(err error, format string, args ...interface{}) error

Types

This section is empty.

Jump to

Keyboard shortcuts

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