sealed class DittoError : Throwable
All errors that are thrown by the Ditto SDK are wrapped as a DittoError
. It wraps multiple
different types of error that each have an associated reason.
You can access more specific information about an error by switching over the error's reason
value. If
you want a human-readable version of the error then call localizedMessage
on the error's reason.
IdentityErrorReason |
The possible underlying reasons a sealed class IdentityErrorReason |
StoreErrorReason |
The possible underlying reasons a sealed class StoreErrorReason |
TransportErrorReason |
The possible underlying reasons a sealed class TransportErrorReason |
identityError |
data class identityError : DittoError |
storeError |
data class storeError : DittoError |
transportError |
data class transportError : DittoError |
message |
open val message: String? |
getLocalizedMessage |
open fun getLocalizedMessage(): String |