exception

package
v0.0.0-...-0cb4c35 Latest Latest
Warning

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

Go to latest
Published: Aug 22, 2023 License: MIT Imports: 0 Imported by: 0

Documentation

Overview

exception

Index

Constants

View Source
const (
	SUCCESS                                   int = 0
	ACCOUNT_CREATE_ERROR                      int = 11001
	INVALID_SOURCEADDRESS_ERROR               int = 11002
	INVALID_DESTADDRESS_ERROR                 int = 11003
	INVALID_INITBALANCE_ERROR                 int = 11004
	SOURCEADDRESS_EQUAL_DESTADDRESS_ERROR     int = 11005
	INVALID_ADDRESS_ERROR                     int = 11006
	CONNECTNETWORK_ERROR                      int = 11007
	INVALID_ISSUE_AMMOUNT_ERROR               int = 11008
	NO_ASSET_ERROR                            int = 11009
	NO_METADATA_ERROR                         int = 11010
	INVALID_DATAKEY_ERROR                     int = 11011
	INVALID_DATAVALUE_ERROR                   int = 11012
	INVALID_DATAVERSION_ERROR                 int = 11013
	INVALID_MASTERWEIGHT_ERROR                int = 11015
	INVALID_SIGNER_ADDRESS_ERROR              int = 11016
	INVALID_SIGNER_WEIGHT_ERROR               int = 11017
	INVALID_TX_THRESHOLD_ERROR                int = 11018
	INVALID_TYPETHRESHOLD_TYPE_ERROR          int = 11019
	INVALID_TYPE_THRESHOLD_ERROR              int = 11020
	INVALID_ASSET_CODE_ERROR                  int = 11023
	INVALID_ASSET_AMOUNT_ERROR                int = 11024
	INVALID_GAS_AMOUNT_ERROR                  int = 11026
	INVALID_ISSUER_ADDRESS_ERROR              int = 11027
	NO_SUCH_TOKEN_ERROR                       int = 11030
	INVALID_TOKEN_NAME_ERROR                  int = 11031
	INVALID_TOKEN_SIMBOL_ERROR                int = 11032
	INVALID_TOKEN_DECIMALS_ERROR              int = 11033
	INVALID_TOKEN_TOTALSUPPLY_ERROR           int = 11034
	INVALID_TOKENOWNER_ERROR                  int = 11035
	INVALID_TOKEN_SUPPLY_ERROR                int = 11036
	INVALID_CONTRACTADDRESS_ERROR             int = 11037
	CONTRACTADDRESS_NOT_CONTRACTACCOUNT_ERROR int = 11038
	INVALID_TOKEN_AMOUNT_ERROR                int = 11039
	SOURCEADDRESS_EQUAL_CONTRACTADDRESS_ERROR int = 11040
	INVALID_FROMADDRESS_ERROR                 int = 11041
	FROMADDRESS_EQUAL_DESTADDRESS_ERROR       int = 11042
	INVALID_SPENDER_ERROR                     int = 11043
	INVALID_LOG_TOPIC_ERROR                   int = 11045
	INVALID_LOG_DATA_ERROR                    int = 11046
	INVALID_NONCE_ERROR                       int = 11048
	INVALID_GASPRICE_ERROR                    int = 11049
	INVALID_FEELIMIT_ERROR                    int = 11050
	OPERATIONS_EMPTY_ERROR                    int = 11051
	INVALID_CEILLEDGERSEQ_ERROR               int = 11052
	OPERATIONS_ONE_ERROR                      int = 11053
	INVALID_SIGNATURENUMBER_ERROR             int = 11054
	INVALID_HASH_ERROR                        int = 11055
	INVALID_BLOB_ERROR                        int = 11056
	PRIVATEKEY_NULL_ERROR                     int = 11057
	PRIVATEKEY_ONE_ERROR                      int = 11058
	INVALID_BLOCKNUMBER_ERROR                 int = 11060
	URL_EMPTY_ERROR                           int = 11062
	CONTRACTADDRESS_CODE_BOTH_NULL_ERROR      int = 11063
	INVALID_OPTTYPE_ERROR                     int = 11064
	GET_ALLOWANCE_ERROR                       int = 11065
	GET_TOKEN_INFO_ERROR                      int = 11066
	SIGNATURE_EMPTY_ERROR                     int = 11067
	SYSTEM_ERROR                              int = 20000
)
View Source
const (
	GET_ENCPUBLICKEY_ERROR int = iota + 14000
	SIGN_ERROR
	INVALID_PAYLOAD_ERROR
	THE_QUERY_FAILED
	QUERY_NO_RESULTS
	OPERATION_NOT_INIT
)

Variables

This section is empty.

Functions

func GetErrDesc

func GetErrDesc(code int) string

GetErrDesc

Types

type SDKResponse

type SDKResponse struct {
	ErrorCode int
	ErrorDesc string
	Result    string
}

func GetSDKRes

func GetSDKRes(code int) SDKResponse

GetSDKRes

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL