CA AuthID SDK Exceptions and Error Codes
This chapter lists all exceptions and error codes that are returned by CA AuthID SDK. It covers the following topics:
aa
This chapter lists all exceptions and error codes that are returned by CA AuthID SDK. It covers the following topics:
Exceptions
If there are any errors while processing the CA AuthID APIs, then the AIDException class is returned. This class provide an constructor class AIDException, which takes error code, error message, and throwable as input.
To fetch the error code for a particular error, the AIDException class provides getcode() method, which returns the error code.
Error Codes
The following table lists the error codes returned by CA AuthID APIs:
Code | Code Message | Description |
Default Errors | ||
1 | E_UNKNOWN | Internal error. |
Storage Errors (10-19) | ||
11 | E_STORE_WRITE | There was an error while saving the account. |
12 | E_STORE_READ | There was an error while reading the account. |
13 | E_STORE_DELETE | There was an error while deleting the account. |
14 | E_STORE_ACCESS | There was an error while accessing the account. |
User Input Errors | ||
31 | E_BAD_NS | The namespace is invalid. |
32 | E_BAD_B64AID | The base64-encoded CA AuthID is invalid. |
33 | E_BAD_ID | The user identifier is invalid. |
34 | E_BAD_ACCOUNT | The URL of CA Strong Authentication Server is not configured correctly. |
35 | E_BAD_PIN | The CA AuthID PIN entered by the user is invalid. |
36 | E_BAD_B64CHALL | The base64-encoded challenge sent by the CA Strong Authentication Server is invalid. |
Processing Errors | ||
41 | E_PROC_DEVLOCK | There was an error while locking the CA AuthID to the device. |
42 | E_PROC_CRYPTO | There was an error while performing the cryptographic operation. |
43 | E_ASN_READ | There was an Abstract Syntax Notation (ASN) error while reading the data. |
44 | E_ASN_WRITE | There was an ASN error while writing the data. |