xerr

package
v0.0.0-...-0f5f40a Latest Latest
Warning

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

Go to latest
Published: Sep 19, 2024 License: GPL-3.0 Imports: 5 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Wrap

func Wrap(err error, message ...string) error

Types

type XError

type XError struct {
	// contains filtered or unexported fields
}

XError 自定义错误类型 可以输出堆栈 本质是为了让错误变成 JAVA 的感觉

func (*XError) Error

func (e *XError) Error() string

func (*XError) PrintStack

func (e *XError) PrintStack()

func (*XError) Unwrap

func (e *XError) Unwrap() error

Jump to

Keyboard shortcuts

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