errors

package
v0.0.0-...-2e449e2 Latest Latest
Warning

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

Go to latest
Published: Dec 12, 2024 License: Apache-2.0, MIT Imports: 1 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Errorf

func Errorf(status Status, format string, args ...interface{}) error

func TransactionExistsf

func TransactionExistsf(format string, args ...interface{}) error

func Unknownf

func Unknownf(format string, args ...interface{}) error

Types

type Error

type Error struct {
	Status  Status
	Message string
}

func (*Error) Error

func (e *Error) Error() string

type Status

type Status string
const NetworkError Status = "NetworkError"

A network error occured -- there may be nothing wrong with the transaction

const NoBalance Status = "NoBalance"

A transaction terminally failed due to no balance

const NoBalanceForGas Status = "NoBalanceForGas"

A transaction terminally failed due to no balance after accounting for gas cost

const TransactionExists Status = "TransactionExists"

A transaction failed to submit because it already exists

const TransactionFailure Status = "TransactionFailure"

A transaction terminally failed due to another reason

const TransactionTimedOut Status = "TransactionTimedOut"

deadline exceeded and transaction can no longer be accepted

const UnknownError Status = "UnknownError"

No outcome for this error known

Jump to

Keyboard shortcuts

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