errors

package
v0.1.1 Latest Latest
Warning

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

Go to latest
Published: Dec 14, 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

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

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

func (*MaximumValueToSellReachedError) Code

func (*MaximumValueToSellReachedError) Error

func (*MaximumValueToSellReachedError) Need

func (*MaximumValueToSellReachedError) Want

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