Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
Types ¶
type ErrCode ¶
type ErrCode uint32
ErrCode define the type of error
const ( // ErrNoError no error ErrNoError ErrCode = 0 // ErrTrxPendingNumLimit limit of pending trx number ErrTrxPendingNumLimit ErrCode = 10001 // ErrTrxSignError invalid trx sign ErrTrxSignError ErrCode = 10002 // ErrTrxAccountError invalid trx account ErrTrxAccountError ErrCode = 10003 // ErrTrxLifeTimeError invalid trx life time ErrTrxLifeTimeError ErrCode = 10004 // ErrTrxUniqueError trx does not unique ErrTrxUniqueError ErrCode = 10005 // ErrTrxChainMathError invalid trx chain math ErrTrxChainMathError ErrCode = 10006 // ErrTrxContractHanldeError handle trx contract error ErrTrxContractHanldeError ErrCode = 10007 // ErrTrxContractDepthError handle trx contract depth error ErrTrxContractDepthError ErrCode = 10008 // ErrTrxSubContractNumError handle trx sub contract num error ErrTrxSubContractNumError ErrCode = 10009 // ErrTrxBlockSyncingError handle trx when block syncing error ErrTrxBlockSyncingError ErrCode = 10010 // ErrTrxAlreadyInPoolError handle trx when trx already in pool ErrTrxAlreadyInPool ErrCode = 10011 // ErrTrxContractError invalid trx contract ErrTrxContractError ErrCode = 10012 // ErrTrxMethodError invalid trx method ErrTrxMethodError ErrCode = 10013 // ErrTrxCheckSpaceError trx has not enough Space token ErrTrxCheckSpaceError ErrCode = 10014 // ErrTrxCheckTimeError trx has not enough Time token ErrTrxCheckTimeError ErrCode = 10015 // ErrTrxCheckMinSpaceError trx has not enough Space token ErrTrxCheckMinSpaceError ErrCode = 10016 // ErrTrxCheckMinTimeError trx has not enough Time token ErrTrxCheckMinTimeError ErrCode = 10017 // ErrTrxCheckSpaceInternalError trx check Space token error ErrTrxCheckSpaceInternalError ErrCode = 10018 // ErrTrxCheckTimeInternalError trx check Time token error ErrTrxCheckTimeInternalError ErrCode = 10019 // ErrTrxCheckResourceInternalError trx check Resource limit error ErrTrxCheckResourceInternalError ErrCode = 10020 // ErrTrxResourceExceedMaxSpacePerTrx trx size Exceeding the maximum value ErrTrxResourceExceedMaxSpacePerTrx ErrCode = 10021 // ErrTrxResourceCheckMinBalance min balance has not enough ErrTrxResourceCheckMinBalance ErrCode = 10022 ErrTrxExecTimeOver ErrCode = 10023 ErrTrxVmTypeInvalid ErrCode = 10024 ErrTrxNoticeContractNumError ErrCode = 10025 ErrTrxContractNotExist ErrCode = 10026 ErrTrxCacheNumLimit ErrCode = 10027 ErrTrxAlreadyInCache ErrCode = 10028 // ErrTrxVersionError invalid trx version ErrTrxVersionError ErrCode = 10051 // ErrAccountNameIllegal invalid contract account name ErrAccountNameIllegal ErrCode = 10101 // ErrAccountNotFound contract account not found ErrAccountNotFound ErrCode = 10102 // ErrAccountAlreadyExist contract account already exist ErrAccountAlreadyExist ErrCode = 10103 // ErrContractParamParseError parse contract param error ErrContractParamParseError ErrCode = 10104 // ErrContractInsufficientFunds insufficient fund ErrContractInsufficientFunds ErrCode = 10105 // ErrContractInvalidContractCode invalid contract code ErrContractInvalidContractCode ErrCode = 10106 // ErrContractInvalidContractAbi invalid abi ErrContractInvalidContractAbi ErrCode = 10107 // ErrContractUnknownContract unknown contract ErrContractUnknownContract ErrCode = 10108 // ErrContractUnknownMethod unknown method ErrContractUnknownMethod ErrCode = 10109 // ErrContractTransferOverflow transfer overflow ErrContractTransferOverflow ErrCode = 10110 // ErrAccountMismatch accoumnt mismatch ErrAccountMismatch ErrCode = 10111 // ErrContractInsufficientCredits insufficient credit ErrContractInsufficientCredits ErrCode = 10112 // ErrAccountPubkeyLenIllegal invalid pubkey len ErrAccountPubkeyLenIllegal ErrCode = 10113 // ErrContractGenesisPermissionError no permission ErrContractGenesisPermissionError ErrCode = 10114 // ErrContractChainNotActivated chain not activated ErrContractChainNotActivated ErrCode = 10115 // ErrContractTransferToSelf cannot transfer to self ErrContractTransferToSelf ErrCode = 10116 // ErrContractGrantToSelf cannot grant to self ErrContractGrantToSelf ErrCode = 10117 ErrContractNumReachMaxPerAccount ErrCode = 10118 ErrContractNotFound ErrCode = 10119 ErrContractNameIllegal ErrCode = 10120 ErrContractNoStakedVoteFunds ErrCode = 10121 ErrContractMustVoteToValidDelegate ErrCode = 10122 ErrContractDelegateVoteAlreadyImported ErrCode = 10123 ErrContractBlockProducingAlreadyTransfered ErrCode = 10124 ErrContractJSNotSupport ErrCode = 10125 ErrContractAlreadyExist ErrCode = 10126 ErrContractInsufficientTransferValue ErrCode = 10127 ErrContractAlreadyClaimedReward ErrCode = 10128 ErrContractUnstakeReleaseTimeNotReached ErrCode = 10129 ErrContractInsufficientUnstakeFunds ErrCode = 10130 // ErrApiTrxNotFound api trx not found ErrApiTrxNotFound ErrCode = 10201 // ErrApiBlockNotFound abi block not found ErrApiBlockNotFound ErrCode = 10202 // ErrApiQueryChainInfoError query chain info error ErrApiQueryChainInfoError ErrCode = 10203 // ErrApiAccountNotFound api account not found ErrApiAccountNotFound ErrCode = 10204 // ErrApiObjectNotFound ap object not found ErrApiObjectNotFound ErrCode = 10205 // ErrTransferCreditNotFound transfer crredit not found ErrTransferCreditNotFound ErrCode = 10206 ErrApiAccountNameIllegal ErrCode = 10207 ErrApiProposalNameIllegal ErrCode = 10210 // ErrActorHandleError actor handle error ErrActorHandleError ErrCode = 10301 ErrContractInsufficientStakeBalanceToRegDelegate ErrCode = 10302 // ErrBlockInsertErrorGeneral general error ErrBlockInsertErrorGeneral ErrCode = 10401 // ErrBlockInsertErrorNotLinked the block not linked to the chain ErrBlockInsertErrorNotLinked ErrCode = 10402 // ErrBlockInsertErrorGeneral block validate fail ErrBlockInsertErrorValidateFail ErrCode = 10403 // ErrBlockInsertErrorGeneral different lib block but linked ErrBlockInsertErrorDiffLibLinked ErrCode = 10404 // ErrBlockInsertErrorGeneral different lib block and not linked in this chain ErrBlockInsertErrorDiffLibNotLinked ErrCode = 10405 // ErrBlockVersionError invalid block version ErrBlockVersionError ErrCode = 10406 // ErrConsensusReceiveMessageTimeout general error ErrConsensusReceiveMessageTimeout ErrCode = 10501 //ErrWalletPasswdError input password error ErrWalletPasswdError ErrCode = 10601 // ErrMsignProposalNameIllegal invalid msign prposal name ErrMsignProposalNameIllegal ErrCode = 10701 // ErrPrposalNotFound msign prposal not found ErrMsignProposalNotFound ErrCode = 10702 // ErrMsignProposalAlreadyExist msign prposal already exist ErrMsignProposalAlreadyExist ErrCode = 10703 // ErrProposalNotFound msign prposal approved not found ErrMsignProposalApprovedNotFound ErrCode = 10704 // ErrProposalNotFound msign prposal transfer illegal ErrMsignProposalTransferIllegal ErrCode = 10705 // ErrProposalNotFound msign prposal authority weight not enough ErrMsignProposalWeightNotEnough ErrCode = 10706 // ErrMsignProposalNoAuthority msign prposal no authority data ErrMsignProposalNoAuthorityData ErrCode = 10707 // ErrMsignProposalNoAuthority msign prposal threshold illegal ErrMsignProposalThresholdIllegal ErrCode = 10708 // ErrMsignProposalNoAuthority msign prposal authority account illegal ErrMsignProposalAuthorityAccountIllegal ErrCode = 10709 // RestErrJsonNewEncoder rest Json NewEncoder RestErrInternal ErrCode = 20000 RestErrGenerateParm ErrCode = 20001 RestErrJsonNewEncoder ErrCode = 20002 RestErrBplMarshal ErrCode = 20003 RestErrDecodeStringError ErrCode = 20004 RestErrStringToBig ErrCode = 20005 RestErrReqNil ErrCode = 20100 RestErrResultNil ErrCode = 20101 RestErrPriKeyError ErrCode = 20102 RestErrPubKeyError ErrCode = 20103 RestErrHashError ErrCode = 20104 RestErrTrxSignError ErrCode = 20202 RestErrUnlockError ErrCode = 20211 RestErrUnkownAccType ErrCode = 20221 RestErrWalletLocked ErrCode = 20222 RestErrWalletExist ErrCode = 20223 RestErrWalletNotExist ErrCode = 20224 RestErrTxPending ErrCode = 20300 RestErrTxNotFound ErrCode = 20301 RestErrTxPacked ErrCode = 20302 RestErrTxSending ErrCode = 20303 RestErrGetResSpaceError ErrCode = 20320 RestErrGetResTimeError ErrCode = 20321 RestErrGetMsignTransferError ErrCode = 20330 RestErrLogItemInvalid ErrCode = 20331 ContractExecStart ErrCode = 0x30000 /* wasm vm exe error : 0x31000~ 0x31fff */ WASMExecErrorStart ErrCode = 0x31000 WASMEXecError_VM_ERR_CREATE_VM ErrCode = 0x31001 WASMEXecError_VM_ERR_GET_VM ErrCode = 0x31002 WASMEXecError_VM_ERR_FIND_VM_METHOD ErrCode = 0x31003 WASMEXecError_VM_ERR_PARAM_COUNT ErrCode = 0x31004 WASMEXecError_VM_ERR_UNSUPPORT_TYPE ErrCode = 0x31005 WASMEXecError_VM_ERR_EXEC_FAILED ErrCode = 0x31006 WASMEXecError_VM_ERR_OUT_OF_MEMORY ErrCode = 0x31007 WASMEXecError_VM_ERR_INVALID_PARAMETER_COUNT ErrCode = 0x31008 WASMEXecError_VM_ERR_FAIL_EXECUTE_ENVFUNC ErrCode = 0x31009 WASMEXecError_VM_ERR_FAIL_STORAGE_MEMORY ErrCode = 0x3100a WASMEXecError_VM_ERR_EXEC_TIME_OVER ErrCode = 0x3100b WASMEXecError_VM_ERR_EXEC_PANIC ErrCode = 0x3100c WASMEXecError_VM_ERR_EXEC_DEFER ErrCode = 0x3100d /* js vm exe error : 0x32000~ 0x32fff */ JSExecErrorStart ErrCode = 0x32000 JSExecError_VM_CTX_INIT_FAIL ErrCode = 0x32001 JSExecError_VM_LOAD_CODE_FAIL ErrCode = 0x32002 JSExecError_VM_JS_CALL_FAIL ErrCode = 0x32003 JSExecError_VM_JS_RTN_FAIL ErrCode = 0x32004 JSExecError_VM_ADD_SUB_TRX_FAIL ErrCode = 0x32005 )
Click to show internal directories.
Click to hide internal directories.