rpcerr

package
v0.4.21 Latest Latest
Warning

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

Go to latest
Published: Jun 17, 2024 License: MIT Imports: 3 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var (
	Unexpected = RegisterErr(errors.New("unexpected"), 1)
	Closed     = RegisterErr(errors.New("closed"), 2)
)

Functions

func Code

func Code(err error) uint64

func Err

func Err(code uint64) error

func RegisterErr

func RegisterErr(err error, code uint64) error

func Unwrap

func Unwrap(e error) error

Types

type ErrGroup

type ErrGroup int64

func (ErrGroup) Register

func (g ErrGroup) Register(err error, code uint64) error

Jump to

Keyboard shortcuts

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