errors

package
v0.1.0 Latest Latest
Warning

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

Go to latest
Published: Aug 31, 2023 License: MIT Imports: 1 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var (
	// BlankRPCURLErr is used when blank rpc url is received
	BlankRPCURLErr = fmt.Errorf("blank rpc url")
	// DialPRCErr is used when error occurred while connecting to rpc provider
	DialPRCErr = fmt.Errorf("dial rpc error")
	// BlankContractAddrErr is used when blank contract address is received
	BlankContractAddrErr = fmt.Errorf("contract address is blank")
	// InvalidContractAddrErr is used when invalid contact address is received
	InvalidContractAddrErr = fmt.Errorf("contract address invalid")
	//InitContractErr is used when error occurred while contract initialization
	InitContractErr = fmt.Errorf("contract initialization error")
	// FilterErr is used when error occurred while filtering contract
	FilterErr = fmt.Errorf("contract filter error")
	// ListenEventErr is used when error occurred while event listening
	ListenEventErr = fmt.Errorf("event listen error")
	// ReadContractErr is used when error occurred while using contract view functions
	ReadContractErr = fmt.Errorf("contract error read")
	// RPCErr is used when error returned from RPC provider
	RPCErr = fmt.Errorf("rpc provider error")
)

Functions

func GetDialRPCErr

func GetDialRPCErr(err error) error

func GetEventListenErr

func GetEventListenErr(err error, event string) error

func GetFilterErr

func GetFilterErr(err error, contract string) error

func GetInitContractErr

func GetInitContractErr(err error) error

func GetRPCProviderErr added in v0.0.2

func GetRPCProviderErr(err error, method string) error

func GetReadContractErr added in v0.0.2

func GetReadContractErr(err error, contract string, method string) error

Types

This section is empty.

Jump to

Keyboard shortcuts

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