errors

package
v1.0.9 Latest Latest
Warning

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

Go to latest
Published: Sep 7, 2020 License: GPL-3.0, GPL-3.0 Imports: 1 Imported by: 0

Documentation

Index

Constants

View Source
const LDB_NOT_FOUND = "leveldb: not found"

Variables

View Source
var (
	ErrSetEmpty        = errors.New("dag: set is empty")
	ErrDagNotFound     = errors.New("dag: not found")
	ErrNotFound        = New(LDB_NOT_FOUND)
	ErrNumberNotFound  = New("dag: header's number not found")
	ErrUtxoNotFound    = New("utxo: not found")
	ErrMessageNotFound = errors.New("message: not found")
	ErrUnitExist       = New("unit: exist")
	ErrNullPoint       = New("null point")
	ErrUnknownAncestor = errors.New("unknown ancestor")
	ErrPrunedAncestor  = errors.New("pruned ancestor")
	ErrFutureBlock     = errors.New("block in the future")
	ErrInvalidNumber   = errors.New("invalid block number")
	ErrEOF             = errors.New("EOF")
)

common error

Functions

func IsNotFoundError

func IsNotFoundError(err error) bool

是数据库中找不到对应数据的Error

func New

func New(text string) error

New returns an error that formats as the given text.

Types

This section is empty.

Jump to

Keyboard shortcuts

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