Skip to main content

Errors

Introduction

Error returns are built in, including some ArConnect special handling errors.

Error messages

export enum ERRORS {
INVALID_CONFIG_PARAMS = 'INVALID_CONFIG_PARAMS',
REQUEST_5S_TIMEOUT = 'REQUEST_5S_TIMEOUT',
ETH_SIGNER_NOT_FOUND = 'ETH_SIGNER_NOT_FOUND',
AR_JWK_NOT_FOUND = 'AR_JWK_NOT_FOUND',
TO_NOT_FOUND = 'TO_NOT_FOUND',
SYMBOL_NOT_FOUND = 'SYMBOL_NOT_FOUND',
TAG_NOT_FOUND = 'TAG_NOT_FOUND',
TOKEN_NOT_FOUND = 'TOKEN_NOT_FOUND',
ACCOUNT_NOT_FOUND = 'ACCOUNT_NOT_FOUND',
ACCOUNT_INVALID = 'ACCOUNT_INVALID',
EVERHASH_NOT_FOUND = 'EVERHASH_NOT_FOUND',
CHAIN_TX_HASH_NOT_FOUND = 'CHAIN_TX_HASH_NOT_FOUND',
INVALID_ACCOUNT_TYPE = 'INVALID_ACCOUNT_TYPE',
INVALID_ACTION = 'INVALID_ACTION',
INVALID_AMOUNT = 'INVALID_AMOUNT',
WITHDRAW_AMOUNT_LESS_THAN_FEE = 'WITHDRAW_AMOUNT_LESS_THAN_FEE',
INSUFFICIENT_QUICK_WITHDRAWAL_AMOUNT = 'INSUFFICIENT_QUICK_WITHDRAWAL_AMOUNT',
WITHDRAW_TOKEN_NOT_SUPPORT_QUICK_MODE = 'WITHDRAW_TOKEN_NOT_SUPPORT_QUICK_MODE',
DEPOSIT_ARWEAVE_PST_MUST_BE_INTEGER = 'DEPOSIT_ARWEAVE_PST_MUST_BE_INTEGER',
PST_WITHDARW_TO_ARWEAVE_MUST_BE_INTEGER = 'PST_WITHDARW_TO_ARWEAVE_MUST_BE_INTEGER',
SMART_ACCOUNT_DEPOSIT_NOT_SUPPORT = 'SMART_ACCOUNT_DEPOSIT_NOT_SUPPORT',
MESSAGE_INCORRECT = 'MESSAGE_INCORRECT'
}

ArConnect Special Handling Errors

enum ERRORS {
PLEASE_INSTALL_ARCONNECT = 'PLEASE_INSTALL_ARCONNECT',
ACCESS_ADDRESS_PERMISSION_NEEDED = 'ACCESS_ADDRESS_PERMISSION_NEEDED',
ACCESS_PUBLIC_KEY_PERMISSION_NEEDED = 'ACCESS_PUBLIC_KEY_PERMISSION_NEEDED',
SIGNATURE_PERMISSION_NEEDED = 'NEED_SIGNATURE_PERMISSION',
SIGN_TRANSACTION_PERMISSION_NEEDED = 'SIGN_TRANSACTION_PERMISSION_NEEDED',
SIGNATURE_FAILED = 'SIGNATURE_FAILED',
TRANSACTION_POST_ERROR = 'TRANSACTION_POST_ERROR',
ACCESS_PUBLIC_KEY_FAILED = 'ACCESS_PUBLIC_KEY_FAILED'
}

Smart Account Model

'ACCOUNT_NOT_RECEIVE'
'MESSAGEDATA_NOT_RECEIVE'
'ACCOUNT_NOT_MATCH'
'CANCEL_SIGN'
'POPUP_CLOSED'
'AUTHORIZE_TIMEOUT'
danger

Due to some current issues with ArConnect, everPay team has customized some ArConnect errors