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"), }
Functions ¶
func GetErrorByCode ¶
Types ¶
type RPCCode ¶
type RPCCode uint32
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.