errors

package
v0.3.10 Latest Latest
Warning

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

Go to latest
Published: Jan 19, 2024 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")
	// EnumUnsupportedErr is used when given value is unsupported in enum
	EnumUnsupportedErr = fmt.Errorf("unsupported status err")
	// InvalidArgumentErr is used when given argument is invalid
	InvalidArgumentErr = fmt.Errorf("invalid argument error")
	// ChainIDNotSupported is used when chain ID not supported by the lib
	ChainIDNotSupported = fmt.Errorf("chain id not supported")
	// FetchErr is used when error occurred when fetch to external dependency
	FetchErr = fmt.Errorf("fetch error")
)

Functions

func GetDialRPCErr

func GetDialRPCErr(err error) error

func GetEventListenErr

func GetEventListenErr(err error, event string) error

func GetFetchErr added in v0.1.26

func GetFetchErr(err error, service string) error

func GetFilterErr

func GetFilterErr(err error, contract string) error

func GetInitContractErr

func GetInitContractErr(err error) error

func GetInvalidArgumentErr added in v0.1.6

func GetInvalidArgumentErr(reason string) 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

func GetUnsupportedErr added in v0.1.2

func GetUnsupportedErr(enum 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