Most of the errors are derived from the
KinEcosystemException exception, Exception has an error code -
getCode() and a detailed message -
Represents an error in local client SDK, error code might be:
ACCOUNT_NOT_LOGGED_IN- Account is not logged in, use (
Kin.login(…)) method first. see Create Account.
BAD_CONFIGURATION- Bad or missing configuration parameters.
INTERNAL_INCONSISTENCY- Some unexpected error occurred internally.
Represents an error communicating with Kin server, error code might be:
SERVICE_ERROR- Some internal server error happened.
NETWORK_ERROR- Error accessing the server.
TIMEOUT_ERROR- Timeout occurred.
USER_NOT_FOUND- Operation required with a non existing user.
USER_HAS_NO_WALLET- The specified user has no active wallet.
Represents an error originated with Kin blockchain, error code might be:
ACCOUNT_CREATION_FAILED- Error trying to create a new account for this user.
ACCOUNT_NOT_FOUND- Blockchain operation required on non-existing account.
ACCOUNT_ACTIVATION_FAILED- Activating(Add Trustline with Kin) an account failed.
INSUFFICIENT_KIN- Not enough Kin balance to perform the operation.
TRANSACTION_FAILED- Transaction has failed.