DittoError

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.

  • activationError: An error occurred relating to activating the Ditto instance.

  • storeError: An error occurred relating to the store.

  • transportError: An error occurred relating to the network transports.

Types

activationError
Link copied to clipboard
data class activationError(reason: DittoError.ActivationErrorReason) : DittoError
ActivationErrorReason
Link copied to clipboard
sealed class ActivationErrorReason
The possible underlying reasons an .activationError error occurs.
storeError
Link copied to clipboard
data class storeError(reason: DittoError.StoreErrorReason) : DittoError
StoreErrorReason
Link copied to clipboard
sealed class StoreErrorReason
The possible underlying reasons a .storeError error occurs.
transportError
Link copied to clipboard
data class transportError(reason: DittoError.TransportErrorReason) : DittoError
TransportErrorReason
Link copied to clipboard
sealed class TransportErrorReason
The possible underlying reasons a .transportError error occurs.

Functions

addSuppressed
Link copied to clipboard
fun addSuppressed(p0: Throwable)
fillInStackTrace
Link copied to clipboard
open fun fillInStackTrace(): Throwable
getLocalizedMessage
Link copied to clipboard
open override fun getLocalizedMessage(): String
getStackTrace
Link copied to clipboard
open fun getStackTrace(): Array<StackTraceElement>
getSuppressed
Link copied to clipboard
fun getSuppressed(): Array<Throwable>
initCause
Link copied to clipboard
open fun initCause(p0: Throwable): Throwable
printStackTrace
Link copied to clipboard
open fun printStackTrace()
open fun printStackTrace(p0: PrintStream)
open fun printStackTrace(p0: PrintWriter)
setStackTrace
Link copied to clipboard
open fun setStackTrace(p0: Array<StackTraceElement>)

Properties

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

Inheritors

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