Class MismatchedDeviceException

  • All Implemented Interfaces:
    java.io.Serializable , org.signal.libsignal.net.BadRequestError , org.signal.libsignal.net.MultiRecipientSendFailure

    
    public final class MismatchedDeviceException
    extends IOException implements MultiRecipientSendFailure
                        

    A failure sending to one or more recipients on account of not being up to date on their devices.

    Each entry in the exception represents a recipient that has either added, removed, or relinked some devices in their account (potentially including their primary device), as represented by the Entry.missingDevices, Entry.extraDevices, and Entry.staleDevices arrays, respectively. Handling the exception involves removing the "extra" devices and establishing new sessions for the "missing" and "stale" devices.