IWException

API - IWException

Code

Name

Description

0

ERR_CODE_NONE

no error occurs

100

ERR_CODE_CRYPTOHELPER_ENCRYPT

Encryption failed

101

ERR_CODE_CRYPTOHELPER_DECRYPT

Decryption failed

102

ERR_CODE_CRYPTOHELPER_SIGN

Signature failure

103

ERR_CODE_CRYPTOHELPER_VERIFY

verification failed

104

ERR_CODE_CRYPTOHELPER_GENSRANDOM_FAIL

Unable to create a random byte

200

ERR_CODE_STRING_CONVERT_TO_BYTE

Unable to convert String to byte

1000

ERR_CODE_KEYMANAGER_LOCKED

Key Manager is on a Locked state

1001

ERR_CODE_KEYMANAGER_KEYID_NOT_EXIST

Key ID does not exist

1002

ERR_CODE_KEYMANAGER_FILE_LOAD_FAIL

Key file loading failed

1003

ERR_CODE_KEYMANAGER_FILE_WRITE_FAIL

Key file writing failed

1004

ERR_CODE_KEYMANAGER_FILE_WRITE_FAIL

This Key ID already exists

1005

ERR_CODE_KEYMANAGER_CLAIMID_ALREADY_EXIST

This Claim ID already exists

1006

ERR_CODE_KEYMANAGER_AES_ENCRYPT_FAIL

AES encryption failed

1007

ERR_CODE_KEYMANAGER_AES_DECRYPT_FAIL

AES decryption failed

1008

ERR_CODE_KEYMANAGER_SIGN_FAIL

Signature failure

1009

ERR_CODE_KEYMANAGER_VERIFY_SIGN_FAIL

Signature verification failed

1010

ERR_CODE_KEYMANAGER_INVALID_CLAIM

the claim being provided is invalid

1011

ERR_CODE_KEYMANAGER_EMPTY_CLAIM

there has no claim

1012

ERR_CODE_KEYMANAGER_OUT_OF_RANGE

out of range value

1013

ERR_CODE_KEYMANAGER_FILTER_CONDITION_NOT_MATCH

filtering condition is not matched

1014

ERR_CODE_KEYMANAGER_FILTER_SYNTAX_ERROR

filtering syntax is wrong

1015

ERR_CODE_KEYMANAGER_INVALID_PRIVACY

Privacy included invalid format or data

1100

ERR_CODE_KEYMANAGER_DEFAULTKEYSTORE_KEYGEN_FAIL

Key creation failure on DefaultKeyStore

1101

ERR_CODE_KEYMANAGER_DEFAULTKEYSTORE_AUTHENTICATE_FAIL

authenticating in DefaultKeyStore is fail

1200

ERR_CODE_KEYMANAGER_ECIES_INVALID_PUBLIC_KEY

Invalid PublicKey

1201

ERR_CODE_KEYMANAGER_ECIES_INVALID_PRIVATE_KEY

Invalid PrivateKey

1202

ERR_CODE_KEYMANAGER_ECIES_GEN_SECRET_FAIL

unable to create the shared secret

2001

ERR_CODE_DIDMANAGER_DIDS_NOT_EXIST

Non-existing DID document

2002

ERR_CODE_DIDMANAGER_DIDS_ALREADY_EXIST

Already existing DID document

2003

ERR_CODE_DIDMANAGER_KEYID_ALREADY_EXIST

key in did document is already existed

2004

ERR_CODE_DIDMANAGER_KEYID_NOT_EXIST

key in DID document does not exist

2005

ERR_CODE_DIDMANAGER_DID_ASSERITON_TYPE_NOT_CORRECT

type in DID assertion is incorrect

3001

ERR_CODE_RECOVERY_MANAGER_INVALID_PASSWORD

Invalid password

3002

ERR_CODE_RECOVERY_MANAGER_EMPTY_CONTENT

There has no data to be backed up

3003

ERR_CODE_RECOVERY_MANAGER_CONTENT_IS_CORRUPTED

Data has been corrupted

3004

ERR_CODE_RECOVERY_MANAGER_CHECKSUM_NOT_MATCH

Checksum does not match

3005

ERR_CODE_RECOVERY_MANAGER_EMPTY_DID_PATH

DID path is empty

3006

ERR_CODE_RECOVERY_MANAGER_FAILED_TO_GET_DID_PATH

Unable to get DID path

getErrorCode

public int getErrorCode()

Description

  • Searches the occurred error code (int).

Return

  • int: Error code

getMessage

public String getMessage()

Description

  • Searches the error code message

Return

  • String: Error message

Last updated