ditto-lib / live.ditto / DittoKitError

DittoKitError

sealed class DittoKitError : Throwable

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

sealed class IdentityErrorReason

The possible underlying reasons a .identityError error occurs.

StoreErrorReason

sealed class StoreErrorReason

The possible underlying reasons a .storeError error occurs.

TransportErrorReason

sealed class TransportErrorReason

The possible underlying reasons a .transportError error occurs.

Exceptions

identityError

data class identityError : DittoKitError

storeError

data class storeError : DittoKitError

transportError

data class transportError : DittoKitError

Properties

message

open val message: String?

Functions

getLocalizedMessage

open fun getLocalizedMessage(): String

Inheritors

identityError

data class identityError : DittoKitError

storeError

data class storeError : DittoKitError

transportError

data class transportError : DittoKitError