errors

package
v1.3.6 Latest Latest
Warning

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

Go to latest
Published: Apr 22, 2024 License: BSD-3-Clause Imports: 5 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func New

func New(errText string) error

New 新错误

func Wrap

func Wrap(err error) error

Wrap 包装已有错误

Types

type DetailedError

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

func NewDetailedError

func NewDetailedError(code string, errString string) *DetailedError

func (*DetailedError) Code

func (this *DetailedError) Code() string

func (*DetailedError) Error

func (this *DetailedError) Error() string

Jump to

Keyboard shortcuts

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