Previous Topic: Error CodesNext Topic: Server Codes


SDK Codes

The following table lists the SDK response codes, cause for failure, and solution wherever applicable:

SDK Response Code

Description

Possible Cause for Failure

0

The SDK has successfully sent the request and has received the response from the server or vice-versa.

Note: This does not imply that the transaction was successful.

N/A

 

 

1

Internal error occurred in SDK due to some unexpected reason.

Possible Cause:
Unexpected behavior by the SDK.

2

(Returned by SDKNotInitializedException)

SDK not initialized successfully.

Possible Cause:
Returned when API is called without initializing.

Solution:
Check if the function to initialize the SDK has completed successfully.

 

 

3

(Returned by SDKAlreadyInitializedException)

SDK is already initialized.

Possible Cause:
User is trying to initialize the SDK that has already been initialized.

4

The configuration file, whose absolute path is provided as the input to the initialization API cannot be read.

Possible Cause:
The configuration file path might be incorrect.

Solution:
Provide the correct configuration file path.

Possible Cause:
Permissions to read the configuration file are not set.

Solution:
Provide Read permission to the configuration file.

5

(Returned by ServerUnreachableException)

The SDK is not able to send requests to the configured server.

Possible Cause:
Server host or port, or both might not be configured correctly.

Solution:
Provide correct host and port number.

Possible Cause:
Server might not be running.

Solution:
Start the server.

Possible Cause:
If SSL is configured, then certificates might not be configured correctly.

Solution:
Configure the SSL certificates correctly.

6

Buffer sent through the output structure is not sufficient.

Possible Cause:
The buffer passed in the output structure(s) is not sufficient for the data to be filled.

Solution:
Send sufficient buffer to store all the data.

 

 

7

(Returned by InvalidSDKConfigurationException)

The SDK configuration is incorrect.

Possible Cause:
Server host or port, or both might not be configured correctly.

Solution:
Provide correct host and port number.

Possible Cause:
If SSL is configured, then certificates might not be correct.

Solution:
Configure a valid client PKCS#12 file and server root CA certificate.

999

(Returned by SDKInternalErrorException)

Internal error.

Possible Cause:
Unexpected SDK internal error.