errs

package
v0.94.1 Latest Latest
Warning

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

Go to latest
Published: Apr 28, 2024 License: MIT Imports: 5 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 带上调用信息

如果 err 为 nil,则返回 nil。 多次调用 NewDepthStackError 包装,则返回第一次包装的返回值。 depth 为 1 表示调用 NewDepthStackError 的位置。

func NewError added in v0.85.0

func NewError(status int, err error) error

func Sprint added in v0.93.0

func Sprint(p *localeutil.Printer, err error, detail bool) string

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