state

package
v0.27.2-unicast-masque... Latest Latest
Warning

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

Go to latest
Published: Aug 18, 2022 License: AGPL-3.0 Imports: 3 Imported by: 3

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func IsInvalidExtensionError

func IsInvalidExtensionError(err error) bool

IsInvalidExtensionError returns whether the given error is an InvalidExtensionError error

func IsNoValidChildBlockError

func IsNoValidChildBlockError(err error) bool

func IsOutdatedExtensionError

func IsOutdatedExtensionError(err error) bool

func IsUnknownBlockError added in v0.26.17

func IsUnknownBlockError(err error) bool

func NewInvalidExtensionError

func NewInvalidExtensionError(msg string) error

func NewInvalidExtensionErrorf

func NewInvalidExtensionErrorf(msg string, args ...interface{}) error

func NewNoValidChildBlockError

func NewNoValidChildBlockError(msg string) error

func NewNoValidChildBlockErrorf added in v0.15.0

func NewNoValidChildBlockErrorf(msg string, args ...interface{}) error

func NewOutdatedExtensionError

func NewOutdatedExtensionError(msg string) error

func NewOutdatedExtensionErrorf

func NewOutdatedExtensionErrorf(msg string, args ...interface{}) error

func NewUnknownBlockError added in v0.26.17

func NewUnknownBlockError(blockID flow.Identifier) error

func WrapAsUnknownBlockError added in v0.26.17

func WrapAsUnknownBlockError(blockID flow.Identifier, err error) error

WrapAsUnknownBlockError wraps a given error as UnknownBlockError

Types

type InvalidExtensionError

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

InvalidExtensionError is an error for invalid extension of the state

func (InvalidExtensionError) Error

func (e InvalidExtensionError) Error() string

func (InvalidExtensionError) Unwrap added in v0.14.0

func (e InvalidExtensionError) Unwrap() error

type NoValidChildBlockError

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

NoValidChildBlockError is a sentinel error when the case where a certain block has no valid child.

func (NoValidChildBlockError) Error

func (e NoValidChildBlockError) Error() string

func (NoValidChildBlockError) Unwrap added in v0.14.0

func (e NoValidChildBlockError) Unwrap() error

type OutdatedExtensionError

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

OutdatedExtensionError is an error for the extension of the state being outdated. Being outdated doesn't mean it's invalid or not. Knowing whether an outdated extension is an invalid extension or not would take more state queries.

func (OutdatedExtensionError) Error

func (e OutdatedExtensionError) Error() string

func (OutdatedExtensionError) Unwrap added in v0.14.0

func (e OutdatedExtensionError) Unwrap() error

type UnknownBlockError added in v0.26.17

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

UnknownBlockError is a sentinel error indicating that a certain block has not been ingested yet.

func (UnknownBlockError) Error added in v0.26.17

func (e UnknownBlockError) Error() string

func (UnknownBlockError) Unwrap added in v0.26.17

func (e UnknownBlockError) Unwrap() error

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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