Package org.signal.libsignal.net
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.
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description public final classMismatchedDeviceException.Entry
-
Constructor Summary
Constructors Constructor Description MismatchedDeviceException(String message, Array<MismatchedDeviceException.Entry> entries)
-
Method Summary
Modifier and Type Method Description final Array<MismatchedDeviceException.Entry>getEntries()-
Methods inherited from class kotlin.Throwable
addSuppressed, fillInStackTrace, getCause, getLocalizedMessage, getMessage, getStackTrace, getSuppressed, initCause, printStackTrace, printStackTrace, printStackTrace, setStackTrace -
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
-
-
Constructor Detail
-
MismatchedDeviceException
MismatchedDeviceException(String message, Array<MismatchedDeviceException.Entry> entries)
-
-
Method Detail
-
getEntries
final Array<MismatchedDeviceException.Entry> getEntries()
-
-
-
-