Error handling

According to the EMVCo 3DS SDK Specification, the Netcetera Android 3DS SDK throws four types of unchecked exceptions when some error has occurred. This exceptions are:

Exception Description
InvalidInputException This exception represents error that is caused by invalidity of input provided to the 3DS SDK. It will contain message describing the cause.
SDKAlreadyInitializedException This exception represents error that is caused when initializing the ThreeDS2Service instance, but it has been already initialized.
SDKNotInitializedException This exception represents error that is caused when calling ThreeDS2Service method that requires it to be initialized, but it has not yet been initialized.
SDKRuntimeException This exception represents error that has occurred internally in the Netcetera Android 3DS SDK. It will contain message describing the cause. It will also contain error code that will provide better understanding of the cause of the error.