ValidationErrorReason

sealed class ValidationErrorReason

Errors interacting with DittoSmallPeerInfo.

Constructors

Link copied to clipboard
protected fun ValidationErrorReason()

Types

Link copied to clipboard
data class Base64Invalid(val message: String) : DittoError.ValidationErrorReason

Invalid base64-encoded string:

Link copied to clipboard
object DepthLimitExceeded : DittoError.ValidationErrorReason

If the amount of JSON data is too nested according to our self-imposed limits, or if the data cannot be parsed to determine the depth.

Link copied to clipboard

The observability subsystem is unavailable. (should never be the case for the small peer).

Link copied to clipboard
data class InvalidCbor(val message: String) : DittoError.ValidationErrorReason

Expected valid CBOR.

Link copied to clipboard
data class InvalidJson(val message: String) : DittoError.ValidationErrorReason

Expected valid JSON.

Link copied to clipboard
data class MissingKey(val keyName: String) : DittoError.ValidationErrorReason

The given Map was missing a required entry for the given key name.

Link copied to clipboard
object NotAMap : DittoError.ValidationErrorReason

The value provided was not a Map.

Link copied to clipboard
data class NotJsonCompatible(val message: String) : DittoError.ValidationErrorReason

The object is or contain(s) types that aren't JSON compatible. JSON compatible types: String, Array, Map, Boolean, null, plus all native floating point & integer numbers.

Link copied to clipboard
object SizeLimitExceeded : DittoError.ValidationErrorReason

The size of the provided metadata is too large.

Link copied to clipboard
data class UnknownSyncScope(val message: String) : DittoError.ValidationErrorReason

The provided DittoSmallPeerInfoSyncScope_t value didn't correspond with any known enum cases.

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
Link copied to clipboard
Link copied to clipboard