Class ZumoKitErrorCode


  • public final class ZumoKitErrorCode
    extends java.lang.Object
    The code of error returned. Some errors that could be handled programmatically (e.g., balance too low) include an error code — a short string with a brief explanation — as a value for code. See Handling Errors for details.
    • Field Detail

      • UNKNOWN_ERROR

        public static final java.lang.String UNKNOWN_ERROR
        Unknown error has occured.
        See Also:
        Constant Field Values
      • NO_CONNECTION

        public static final java.lang.String NO_CONNECTION
        No internet connection.
        See Also:
        Constant Field Values
      • ACCOUNT_NOT_FOUND

        public static final java.lang.String ACCOUNT_NOT_FOUND
        Requested account not found.
        See Also:
        Constant Field Values
      • AMOUNT_NOT_SET

        public static final java.lang.String AMOUNT_NOT_SET
        Amount not set. Either send max has to be enabled or send max set.
        See Also:
        Constant Field Values
      • API_SERVICE_ERROR

        public static final java.lang.String API_SERVICE_ERROR
        Invalid response received from ZumoKit API.
        See Also:
        Constant Field Values
      • CARD_NOT_FOUND

        public static final java.lang.String CARD_NOT_FOUND
        Requested card not found.
        See Also:
        Constant Field Values
      • CARD_SERVICE_ERROR

        public static final java.lang.String CARD_SERVICE_ERROR
        Invalid response received from ZumoKit Card Service API.
        See Also:
        Constant Field Values
      • CHANGE_ACCOUNT_NOT_FOUND

        public static final java.lang.String CHANGE_ACCOUNT_NOT_FOUND
        Requested change account not found.
        See Also:
        Constant Field Values
      • CHANGE_INDEX_OUT_OF_RANGE

        public static final java.lang.String CHANGE_INDEX_OUT_OF_RANGE
        Change output index out of range.
        See Also:
        Constant Field Values
      • CURRENCY_NOT_SUPPORTED

        public static final java.lang.String CURRENCY_NOT_SUPPORTED
        Currency not supported.
        See Also:
        Constant Field Values
      • DATA_OVERFLOW

        public static final java.lang.String DATA_OVERFLOW
        Transaction data overflow. Maximum data size supported by RLP encoding exceeds 16000000 bytes.
        See Also:
        Constant Field Values
      • DATA_PROVIDED_WHEN_SEND_MAX_SET

        public static final java.lang.String DATA_PROVIDED_WHEN_SEND_MAX_SET
        Cannot set data when send max enabled.
        See Also:
        Constant Field Values
      • ETHEREUM_TRANSACTION_DATA_NOT_SUPPORTED

        public static final java.lang.String ETHEREUM_TRANSACTION_DATA_NOT_SUPPORTED
        Ethereum transaction data is not supported yet.
        See Also:
        Constant Field Values
      • FIAT_ACCOUNT_EXPECTED

        public static final java.lang.String FIAT_ACCOUNT_EXPECTED
        Invalid account provided. Fiat accounted expected.
        See Also:
        Constant Field Values
      • GAS_OVERFLOW

        public static final java.lang.String GAS_OVERFLOW
        Gas too long. Cumulative gas limit and gas price should not exceed 30 bytes.
        See Also:
        Constant Field Values
      • GAS_TOO_LOW

        public static final java.lang.String GAS_TOO_LOW
        Gas too low. Gas price and gas limit should be higher than 0.
        See Also:
        Constant Field Values
      • INCOMPATIBLE_NETWORK_TYPES

        public static final java.lang.String INCOMPATIBLE_NETWORK_TYPES
        Change account and source accounts have to be on the same network.
        See Also:
        Constant Field Values
      • INCORRECT_ACCOUNT_SELECTED

        public static final java.lang.String INCORRECT_ACCOUNT_SELECTED
        Incorrect account selected. Account does not match the requirements of requested operation.
        See Also:
        Constant Field Values
      • INCORRECT_CHANGE_ACCOUNT_SELECTED

        public static final java.lang.String INCORRECT_CHANGE_ACCOUNT_SELECTED
        Incorrect change account selected. Change account should be Bitcoin account on the same network as source account
        See Also:
        Constant Field Values
      • INSUFFICIENT_FUNDS_FOR_TRANSACTION

        public static final java.lang.String INSUFFICIENT_FUNDS_FOR_TRANSACTION
        Insufficient funds for transaction value and network fees.
        See Also:
        Constant Field Values
      • INT64_OVERFLOW

        public static final java.lang.String INT64_OVERFLOW
        Value exceeds maximum 63 bit precision.
        See Also:
        Constant Field Values
      • INVALID_ACCOUNT_TYPE

        public static final java.lang.String INVALID_ACCOUNT_TYPE
        Account type not supported by the operation.
        See Also:
        Constant Field Values
      • INVALID_ADDRESS

        public static final java.lang.String INVALID_ADDRESS
        Destination address is invalid.
        See Also:
        Constant Field Values
      • INVALID_API_RESPONSE

        public static final java.lang.String INVALID_API_RESPONSE
        Invalid response received from API.
        See Also:
        Constant Field Values
      • INVALID_HD_WALLET_PATH

        public static final java.lang.String INVALID_HD_WALLET_PATH
        Requested private key derivation path is invalid.
        See Also:
        Constant Field Values
      • INVALID_METADATA

        public static final java.lang.String INVALID_METADATA
        Invalid metadata. Metadata must be a valid JSON.
        See Also:
        Constant Field Values
      • INVALID_MNEMONIC

        public static final java.lang.String INVALID_MNEMONIC
        Invalid mnemonic phrase.
        See Also:
        Constant Field Values
      • INVALID_MNEMONIC_WORD_COUNT

        public static final java.lang.String INVALID_MNEMONIC_WORD_COUNT
        Invalid length of mnemonic phrase. Mnemonic phrase should be 12, 15, 18, 21 or 24 words long.
        See Also:
        Constant Field Values
      • INVALID_NETWORK_TYPE

        public static final java.lang.String INVALID_NETWORK_TYPE
        Network type not supported by requested operation.
        See Also:
        Constant Field Values
      • INVALID_PASSWORD

        public static final java.lang.String INVALID_PASSWORD
        "Incorrect password provided.
        See Also:
        Constant Field Values
      • INVALID_RECOVERY_PHRASE

        public static final java.lang.String INVALID_RECOVERY_PHRASE
        "The provided recovery phrase does not correspond to existing wallet."
        See Also:
        Constant Field Values
      • INVALID_TRANSACTION_TYPE

        public static final java.lang.String INVALID_TRANSACTION_TYPE
        Invalid transaction type.
        See Also:
        Constant Field Values
      • INVALID_TRANSACTION_VALUE

        public static final java.lang.String INVALID_TRANSACTION_VALUE
        Invalid transaction value.
        See Also:
        Constant Field Values
      • INVALID_USER_TOKEN_SET

        public static final java.lang.String INVALID_USER_TOKEN_SET
        Invalid user token set. User token set should be a valid stringified JSON with accessToken, refreshToken and expiresIn properties.
        See Also:
        Constant Field Values
      • INVALID_WEBSOCKET_RESPONSE

        public static final java.lang.String INVALID_WEBSOCKET_RESPONSE
        Invalid response received from WebSocket.
        See Also:
        Constant Field Values
      • KNOWN_TRANSACTION

        public static final java.lang.String KNOWN_TRANSACTION
        Transaction already submitted.
        See Also:
        Constant Field Values
      • NO_DESTINATION_ADDRESS

        public static final java.lang.String NO_DESTINATION_ADDRESS
        No destination address. In case no transaction data is provided, destination address is obligatory.
        See Also:
        Constant Field Values
      • NO_NOMINATED_ACCOUNT_FOUND

        public static final java.lang.String NO_NOMINATED_ACCOUNT_FOUND
        No nominated account found.
        See Also:
        Constant Field Values
      • NO_WALLET_FOUND

        public static final java.lang.String NO_WALLET_FOUND
        Requested operation requies existance of a wallet. No wallet was found.
        See Also:
        Constant Field Values
      • NONCE_OVERFLOW

        public static final java.lang.String NONCE_OVERFLOW
        Nonce too long. Maximum supported nonce size is 32 bytes.
        See Also:
        Constant Field Values
      • NOT_AUTHORIZED

        public static final java.lang.String NOT_AUTHORIZED
        User session has expired.
        See Also:
        Constant Field Values
      • SEND_MAX_INSUFFICIENT_FUNDS_FOR_FEE

        public static final java.lang.String SEND_MAX_INSUFFICIENT_FUNDS_FOR_FEE
        Insufficient funds to pay the transaction fee.
        See Also:
        Constant Field Values
      • SEND_MAX_INSUFFICIENT_FUNDS_FOR_TRANSACTION

        public static final java.lang.String SEND_MAX_INSUFFICIENT_FUNDS_FOR_TRANSACTION
        Transaction amount is too small to send after the fee has been deducted.
        See Also:
        Constant Field Values
      • SIGNING_ERROR

        public static final java.lang.String SIGNING_ERROR
        Something went wrong signing transaction.
        See Also:
        Constant Field Values
      • TRANSACTION_AMOUNT_OVERFLOW

        public static final java.lang.String TRANSACTION_AMOUNT_OVERFLOW
        Transaction amount exceeds maximum precision.
        See Also:
        Constant Field Values
      • TRANSACTION_AMOUNT_TOO_SMALL

        public static final java.lang.String TRANSACTION_AMOUNT_TOO_SMALL
        Transaction amount too small to send.
        See Also:
        Constant Field Values
      • TRANSACTION_SERVICE_ERROR

        public static final java.lang.String TRANSACTION_SERVICE_ERROR
        Invalid response received from ZumoKit Transaction Service API.
        See Also:
        Constant Field Values
      • TRANSACTION_TOO_LARGE

        public static final java.lang.String TRANSACTION_TOO_LARGE
        Resulting transaction is too large.
        See Also:
        Constant Field Values
      • UTXO_SIGNING_ERROR

        public static final java.lang.String UTXO_SIGNING_ERROR
        Unspent transaction output could not be signed.
        See Also:
        Constant Field Values
      • AMOUNT_PROVIDED_WHEN_SEND_MAX_SET

        public static final java.lang.String AMOUNT_PROVIDED_WHEN_SEND_MAX_SET
        Cannot set amount when send max enabled. Set amount to null if trying t send maximum funds.
        See Also:
        Constant Field Values
      • WALLET_LIMIT_EXCEEDED

        public static final java.lang.String WALLET_LIMIT_EXCEEDED
        Wallet could not be created. Wallet already exists.
        See Also:
        Constant Field Values
    • Constructor Detail

      • ZumoKitErrorCode

        public ZumoKitErrorCode()
    • Method Detail

      • toString

        public java.lang.String toString()
        Overrides:
        toString in class java.lang.Object