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

Link copied to clipboard
data class ActivationError(val reason: DittoError.ActivationErrorReason) : DittoError
Link copied to clipboard
sealed class ActivationErrorReason

The possible underlying reasons an .activationError error occurs.

Link copied to clipboard
data class AuthenticationError(val reason: DittoError.AuthenticationErrorReason) : DittoError
Link copied to clipboard
sealed class AuthenticationErrorReason

The possible underlying reasons an .authenticationError error occurs.

Link copied to clipboard
data class BusError(val reason: DittoError.BusErrorReason) : DittoError
Link copied to clipboard
sealed class BusErrorReason

The possible underlying reasons a .busError error occurs.

Link copied to clipboard
data class InternalError(val reason: DittoError.InternalErrorReason) : DittoError
Link copied to clipboard
sealed class InternalErrorReason

Errors from related to internal ditto core native communication.

Link copied to clipboard
data class PresenceError(val reason: DittoError.PresenceErrorReason) : DittoError
Link copied to clipboard
sealed class PresenceErrorReason

Errors transforming Ditto mesh presence data to or from JSON encoding.

Link copied to clipboard
data class StoreError(val reason: DittoError.StoreErrorReason) : DittoError
Link copied to clipboard
sealed class StoreErrorReason

The possible underlying reasons a .storeError error occurs.

Link copied to clipboard
data class TransportError(val reason: DittoError.TransportErrorReason) : DittoError
Link copied to clipboard
sealed class TransportErrorReason

The possible underlying reasons a .transportError error occurs.

Link copied to clipboard
data class ValidationError(val reason: DittoError.ValidationErrorReason) : DittoError
Link copied to clipboard
sealed class ValidationErrorReason

Errors interacting with small peer info.

Functions

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

Properties

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

Inheritors

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