dittosynckit / live.ditto / DittoSyncKitError

DittoSyncKitError

sealed class DittoSyncKitError : Throwable

All errors that are thrown by the DittoSyncKit SDK are wrapped as a DittoSyncKitError. 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.

Types

IdentityErrorReason

The possible underlying reasons a .identityError error occurs.

sealed class IdentityErrorReason

StoreErrorReason

The possible underlying reasons a .storeError error occurs.

sealed class StoreErrorReason

TransportErrorReason

The possible underlying reasons a .transportError error occurs.

sealed class TransportErrorReason

Exceptions

identityError

data class identityError : DittoSyncKitError

storeError

data class storeError : DittoSyncKitError

transportError

data class transportError : DittoSyncKitError

Properties

message

open val message: String?

Functions

getLocalizedMessage

open fun getLocalizedMessage(): String