Class CannotEstablishOmemoSessionException

java.lang.Object
java.lang.Throwable
java.lang.Exception
org.jivesoftware.smackx.omemo.exceptions.CannotEstablishOmemoSessionException
All Implemented Interfaces:
Serializable

public class CannotEstablishOmemoSessionException extends Exception
Exception gets thrown when we are unable to establish a session with a device for some reason.
See Also:
  • Constructor Details

    • CannotEstablishOmemoSessionException

      public CannotEstablishOmemoSessionException(OmemoDevice failed, Throwable reason)
  • Method Details

    • addFailures

      public void addFailures(CannotEstablishOmemoSessionException otherFailures)
    • addSuccess

      public void addSuccess(OmemoDevice success)
    • getFailures

      public Map<org.jxmpp.jid.BareJid,Map<OmemoDevice,Throwable>> getFailures()
    • getSuccesses

      public Map<org.jxmpp.jid.BareJid,List<OmemoDevice>> getSuccesses()
    • requiresThrowing

      public boolean requiresThrowing()
      Return true, if there is at least one recipient, which would not be able to decipher the message on any of their devices.
      Returns:
      true if the exception requires to be thrown