errors

package
v0.4.9 Latest Latest
Warning

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

Go to latest
Published: Jul 18, 2022 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

新错误

func Wrap

func Wrap(err error) error

包装已有错误

Types

type DetailedError

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

func NewDetailedError

func NewDetailedError(code string, error 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