Previous Topic: ArcotID OTP SDK Exceptions and Error CodesNext Topic: Error Codes


Exceptions

If there are any errors while processing the ArcotID OTP APIs, then the OTPException class is returned. This class provide an constructor class OTPException, which takes error code, error message, and throwable as input.

To fetch the error code for a particular error, the OTPException class provides getcode() method, which returns the error code. See the "Error Codes" section for the list of error codes and error messages returned by ArcotID OTP APIs.