AtiSdkException

sealed class AtiSdkException : Exception

Base type for ATI SDK errors.

Catch this type when the integration wants to handle all SDK-related infrastructure failures in one place. User or terminal cancellation is reported through Terminal transaction result models.

Inheritors

Types

Link copied to clipboard
data class CapabilityNotSupported(val capability: String) : AtiSdkException

Thrown when the connected service does not advertise the capability required for an operation.

Link copied to clipboard
data class OperationFailed(val errorCode: String, details: String) : AtiSdkException

Thrown when the remote service reports an operation-specific failure.

Link copied to clipboard

Thrown when the expected remote payment service app is not installed on the device.

Link copied to clipboard

Thrown when a Binder call fails unexpectedly, including binder death scenarios.

Link copied to clipboard
data class SecurityError(details: String) : AtiSdkException

Thrown when the remote service rejects an operation for security reasons.

Link copied to clipboard
data class ServiceBindFailed(details: String = "Could not bind to the ATI service") : AtiSdkException

Thrown when the SDK cannot bind to the configured Terminal API host service.

Link copied to clipboard

Thrown when an operation is started before AtiSdk.connect succeeds, or after the service connection has been lost.

Link copied to clipboard
data class ServiceVersionUnsupported(val expected: Int, val actual: Int?) : AtiSdkException

Thrown when the connected service reports an incompatible service or API version.

Link copied to clipboard
data class Timeout(details: String = "ATI operation timed out") : AtiSdkException

Thrown when an operation does not complete before the SDK timeout expires.