errors

package
v0.15.0 Latest Latest
Warning

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

Go to latest
Published: Oct 15, 2023 License: MIT Imports: 1 Imported by: 0

Documentation

Index

Constants

View Source
const (
	ErrNone = iota
	ErrGeneric
	ErrNetwork
	ErrInvalidBlock
	ErrInvalidAmount
	ErrInvalidFee
	ErrInvalidAddress
	ErrInvalidPublicKey
	ErrInvalidPrivateKey
	ErrInvalidSignature
	ErrInvalidTx
	ErrInvalidMemo
	ErrInvalidProof
	ErrInvalidHeight
	ErrInvalidRound
	ErrInvalidProposal
	ErrInvalidVote
	ErrInvalidMessage
	ErrInvalidConfig
	ErrDuplicateVote

	ErrCount
)

Variables

This section is empty.

Functions

func Code

func Code(err error) int

func Error

func Error(code int) error

func Errorf

func Errorf(code int, format string, a ...interface{}) error

Types

This section is empty.

Jump to

Keyboard shortcuts

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