public class StaleDeviceException extends Exception
Constructor and Description |
---|
StaleDeviceException(OmemoDevice device,
Date lastMessageDate,
Date lastDeviceIdPublicationDate)
This exception gets thrown if a message cannot be encrypted for a device due to the device being inactive for too long (stale).
|
Modifier and Type | Method and Description |
---|---|
OmemoDevice |
getDevice()
Return the stale OMEMO device.
|
Date |
getLastDeviceIdPublicationDate()
Return the date of the last time the deviceId was republished after being inactive/non-existent before.
|
Date |
getLastMessageDate()
Return the date on which the last OMEMO message sent from the device was received.
|
addSuppressed, fillInStackTrace, getCause, getLocalizedMessage, getMessage, getStackTrace, getSuppressed, initCause, printStackTrace, printStackTrace, printStackTrace, setStackTrace, toString
public StaleDeviceException(OmemoDevice device, Date lastMessageDate, Date lastDeviceIdPublicationDate)
device
- OmemoDevice.lastMessageDate
- lastDeviceIdPublicationDate
- public Date getLastMessageDate()
public Date getLastDeviceIdPublicationDate()
public OmemoDevice getDevice()