errors

package
v1.2.9 Latest Latest
Warning

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

Go to latest
Published: Dec 3, 2019 License: MIT Imports: 6 Imported by: 2

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func GetNodeErrorFromResponse

func GetNodeErrorFromResponse(r *responses.SendTransactionResponse) error

func NewInsufficientFundsError

func NewInsufficientFundsError(text string, code int32, val string, coin string) error

func NewMaximumValueToSellReachedError added in v1.2.9

func NewMaximumValueToSellReachedError(text string, code int32, want string, need string) error

func NewNodeError

func NewNodeError(text string, code int32) error

New returns an error that formats as the given text.

func NewNodeTimeOutError

func NewNodeTimeOutError(text string, code int32) error

New returns an error that formats as the given text.

func SetErrorResponse

func SetErrorResponse(err error, c *gin.Context)

Types

type InsufficientFundsError

type InsufficientFundsError struct {
	// contains filtered or unexported fields
}

func (*InsufficientFundsError) Code

func (e *InsufficientFundsError) Code() int32

func (*InsufficientFundsError) Coin

func (e *InsufficientFundsError) Coin() string

func (*InsufficientFundsError) Error

func (e *InsufficientFundsError) Error() string

func (*InsufficientFundsError) Value

func (e *InsufficientFundsError) Value() string

type MaximumValueToSellReachedError added in v1.2.9

type MaximumValueToSellReachedError struct {
	// contains filtered or unexported fields
}

func (*MaximumValueToSellReachedError) Code added in v1.2.9

func (*MaximumValueToSellReachedError) Error added in v1.2.9

func (*MaximumValueToSellReachedError) Need added in v1.2.9

func (*MaximumValueToSellReachedError) Want added in v1.2.9

type NodeError

type NodeError struct {
	// contains filtered or unexported fields
}

func (*NodeError) Code

func (e *NodeError) Code() int32

func (*NodeError) Error

func (e *NodeError) Error() string

type NodeTimeOutError

type NodeTimeOutError struct {
	// contains filtered or unexported fields
}

func (*NodeTimeOutError) Code

func (e *NodeTimeOutError) Code() int32

func (*NodeTimeOutError) Error

func (e *NodeTimeOutError) Error() string

Jump to

Keyboard shortcuts

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