xerrors

package
v0.0.0-...-b804f52 Latest Latest
Warning

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

Go to latest
Published: Mar 3, 2023 License: MulanPSL-2.0 Imports: 0 Imported by: 0

Documentation

Index

Constants

View Source
const (
	UnknownErrorCode = 1
)

Variables

This section is empty.

Functions

func New

func New(code int64, text string) error

Types

type CodeError

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

func ToCodeError

func ToCodeError(err error) *CodeError

func (*CodeError) Code

func (e *CodeError) Code() int64

func (*CodeError) Error

func (e *CodeError) Error() string

Jump to

Keyboard shortcuts

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