commonMain.software.momento.kotlin.sdk.exceptions.CancellationException.kt Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of sdk Show documentation
Show all versions of sdk Show documentation
Kotlin client SDK for Momento Serverless Cache
The newest version!
package software.momento.kotlin.sdk.exceptions
import software.momento.kotlin.sdk.internal.MomentoTransportErrorDetails
/**
* Operation was cancelled.
*/
public class CancellationException(
cause: Throwable,
transportErrorDetails: MomentoTransportErrorDetails
) : MomentoServiceException(
MomentoErrorCode.CANCELLED_ERROR,
MESSAGE,
cause,
transportErrorDetails
) {
private companion object {
const val MESSAGE = "The request was cancelled by the server; please contact Momento."
}
}