Documentation ¶
Index ¶
- func GetNodeErrorFromResponse(r *responses.SendTransactionResponse) error
- func NewInsufficientFundsError(text string, code int32, val string, coin string) error
- func NewMaximumValueToSellReachedError(text string, code int32, want string, need string) error
- func NewNodeError(text string, code int32) error
- func NewNodeTimeOutError(text string, code int32) error
- func SetErrorResponse(err error, c *gin.Context)
- type InsufficientFundsError
- type MaximumValueToSellReachedError
- type NodeError
- type NodeTimeOutError
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func GetNodeErrorFromResponse ¶
func GetNodeErrorFromResponse(r *responses.SendTransactionResponse) error
func NewNodeError ¶
New returns an error that formats as the given text.
func NewNodeTimeOutError ¶
New returns an error that formats as the given text.
func SetErrorResponse ¶
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 (e *MaximumValueToSellReachedError) Code() int32
func (*MaximumValueToSellReachedError) Error ¶
func (e *MaximumValueToSellReachedError) Error() string
func (*MaximumValueToSellReachedError) Need ¶
func (e *MaximumValueToSellReachedError) Need() string
func (*MaximumValueToSellReachedError) Want ¶
func (e *MaximumValueToSellReachedError) Want() 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
Click to show internal directories.
Click to hide internal directories.