Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
View Source
var RPCCodes = map[RPCCode]error{ RPCCodeNotEnoughResources: errors.New("not enough resources"), RPCCodeAddressIsTaken: errors.New("the address is occupied by another transaction"), RPCCodeMaxFeeExceeded: errors.New("max fee value exceeded"), RPCCodeBlockchainIsDisabled: errors.New("blockchain is disabled"), RPCCodeAddressEmptyBalance: errors.New("address empty balance"), RPCCodeNotEnoughBalance: errors.New("not enough balance"), RPCCodeServiceUnavailable: errors.New("service unavailable"), RPCCodeTwoFactorRequired: errors.New("two-factor authentication is required"), RPCCodeTwoFactorInvalid: errors.New("two-factor authentication is invalid"), RPCCodeRefundSourceInvalid: errors.New("refund source is invalid"), RPCCodeRefundAlreadyExists: errors.New("refund already exists"), RPCCodeTransferNotCancelable: errors.New("transfer is not cancelable"), RPCCodeRefundInsufficientFee: errors.New("not enough native coin on the address to pay the refund fee"), }
Functions ¶
func GetErrorByCode ¶
Types ¶
type RPCCode ¶
type RPCCode uint32
const ( RPCCodeNotEnoughResources RPCCode = 3000 RPCCodeAddressIsTaken RPCCode = 3001 RPCCodeMaxFeeExceeded RPCCode = 3002 RPCCodeNotEnoughBalance RPCCode = 3004 RPCCodeBlockchainIsDisabled RPCCode = 4000 RPCCodeAddressEmptyBalance RPCCode = 4001 RPCCodeTwoFactorRequired RPCCode = 5000 RPCCodeTwoFactorInvalid RPCCode = 5001 RPCCodeRefundSourceInvalid RPCCode = 5002 RPCCodeRefundAlreadyExists RPCCode = 5003 RPCCodeTransferNotCancelable RPCCode = 5004 RPCCodeRefundInsufficientFee RPCCode = 5005 )
func NewConnectError ¶
NewConnectError creates a new connectrpc error with the given connect code and error.
Click to show internal directories.
Click to hide internal directories.