etherr

package
v0.0.6 Latest Latest
Warning

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

Go to latest
Published: Sep 17, 2019 License: MIT Imports: 1 Imported by: 1

Documentation

Index

Constants

This section is empty.

Variables

View Source
var ConnectionClosed = New("Websocket connection closed", 0, "")

ConnectionClosed is returned when the websocket connection is closed

View Source
var Empty = New("Result is empty", 0, "")

Empty is returned when a rpc call returned an empty result

View Source
var InvalidUInt8 = New("Result is not a valid uint8", 0, "")

InvalidUInt8 is returned when a rpc call returned an empty result

View Source
var Nil = New("Result is null", 0, "")

Nil is returned when a rpc call returned a null result

View Source
var VMExecutionError = New("VM execution error", 0, "")

VMExecutionError parity returns this when there was an error executing the call in the VM

Functions

func New

func New(err string, code int, details string) error

New returns a new rpcError

Types

type RpcError

type RpcError struct {
	Code    int
	Details string
	// contains filtered or unexported fields
}

func (*RpcError) Error

func (e *RpcError) Error() string

Jump to

Keyboard shortcuts

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