errs

package
v0.82.0 Latest Latest
Warning

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

Go to latest
Published: Sep 10, 2023 License: MIT Imports: 3 Imported by: 0

Documentation

Overview

Package errs 与错误相关的定义

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func NewDepthStackError added in v0.66.1

func NewDepthStackError(depth int, err error) error

NewDepthStackError 为 err 带上调用信息

位置从调用 NewStackError 开始。 如果 err 为 nil,则返回 nil。 多次调用 NewStackError 包装,则返回第一次包装的返回值。

如果需要输出调用堆栈信息,需要指定 %+v 标记。

func NewHTTPError added in v0.79.5

func NewHTTPError(status int, err error) error

func NewStackError added in v0.66.0

func NewStackError(err error) error

Types

type HTTP added in v0.79.5

type HTTP struct {
	Status  int
	Message error
}

func (*HTTP) Error added in v0.79.5

func (err *HTTP) Error() string

func (*HTTP) Unwrap added in v0.79.5

func (err *HTTP) Unwrap() error

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL
JackTT - Gopher 🇻🇳