errutil

package
v0.13.3 Latest Latest
Warning

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

Go to latest
Published: Aug 2, 2023 License: AGPL-3.0 Imports: 2 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var (
	// ErrNotFound must equal Geth's not-found error. This is because some Geth components we use throw the latter, and
	// we want to be able to catch both types in a single error-check.
	ErrNotFound = ethereum.NotFound
	ErrNoImpl   = errors.New("not implemented")
)

Functions

This section is empty.

Types

type EVMSerialisableError added in v0.13.0

type EVMSerialisableError struct {
	Err    string
	Reason interface{}
	Code   int
}

EVMSerialisableError is an API error that encompasses an EVM error with a code and a reason

func (EVMSerialisableError) Error added in v0.13.0

func (e EVMSerialisableError) Error() string

func (EVMSerialisableError) ErrorCode added in v0.13.0

func (e EVMSerialisableError) ErrorCode() int

func (EVMSerialisableError) ErrorData added in v0.13.0

func (e EVMSerialisableError) ErrorData() interface{}

Jump to

Keyboard shortcuts

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