ExceptionWrapper

data class ExceptionWrapper(version: String?, data: ExceptionWrapper.Data, error: Boolean?, account: String?) : 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

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

Types

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

Properties

Link copied to clipboard
open override val account: String? = null

the account this message is from

Link copied to clipboard
open override val data: ExceptionWrapper.Data

the incoming object. The structure will vary from message to message, see type and version fields

Link copied to clipboard
open override val error: Boolean? = true

true if the incoming message represents an error

Link copied to clipboard
open override val version: String? = null

the version of the object in the data field