MXCryptoError

sealed class MXCryptoError : Throwable

Represents a crypto error response.

Inheritors

Types

Link copied to clipboard
data class Base(val errorType: MXCryptoError.ErrorType, val technicalMessage: String, val detailedErrorDescription: String? = null) : MXCryptoError
Link copied to clipboard
object Companion
Link copied to clipboard
Link copied to clipboard

Functions

Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
fun Throwable.getRetryDelay(defaultValue: Long): Long

Get the retry delay in case of rate limit exceeded error, adding 100 ms, of defaultValue otherwise.

Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard

Try to convert to a RegistrationFlowResponse. Return null in the cases it's not possible

Link copied to clipboard

Try to convert to a ScanFailure. Return null in the cases it's not possible

Properties

Link copied to clipboard
open val cause: Throwable?
Link copied to clipboard
open val message: String?