ExceptionWrapper

data class ExceptionWrapper(version: String?, data: ExceptionWrapper.Data, error: Boolean?) : ClientMessageWrapper

An incoming message representing an error that can be sent by signald after a v1 subscribe request. This is not documented in the client protocol; however, as the signald socket can send it anyway, we add this here for type safety purposes.

Example: { "type":"ExceptionWrapper", "version":"v1", "data":{"message":"org.signal.libsignal.metadata.ProtocolDuplicateMessageException"}, "error":true }

Constructors

ExceptionWrapper
Link copied to clipboard
common
fun ExceptionWrapper(version: String? = null, data: ExceptionWrapper.Data, error: Boolean? = false)

Types

Data
Link copied to clipboard
common
data class Data(message: String?, unexpected: Boolean?) : ClientMessageWrapper.Data

Properties

data
Link copied to clipboard
common
open override val data: ExceptionWrapper.Data
the incoming object.
error
Link copied to clipboard
common
open override val error: Boolean? = false
true if the incoming message represents an error
version
Link copied to clipboard
common
open override val version: String? = null
the version of the object in the data field