Class CannotEstablishOmemoSessionException

  • All Implemented Interfaces:
    java.io.Serializable

    public class CannotEstablishOmemoSessionException
    extends java.lang.Exception
    Exception gets thrown when we are unable to establish a session with a device for some reason.
    See Also:
    Serialized Form
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      void addFailures​(CannotEstablishOmemoSessionException otherFailures)  
      void addSuccess​(OmemoDevice success)  
      java.util.HashMap<org.jxmpp.jid.BareJid,​java.util.HashMap<OmemoDevice,​java.lang.Throwable>> getFailures()  
      java.util.HashMap<org.jxmpp.jid.BareJid,​java.util.ArrayList<OmemoDevice>> getSuccesses()  
      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.
      • Methods inherited from class java.lang.Throwable

        addSuppressed, fillInStackTrace, getCause, getLocalizedMessage, getMessage, getStackTrace, getSuppressed, initCause, printStackTrace, printStackTrace, printStackTrace, setStackTrace, toString
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
    • Constructor Detail

      • CannotEstablishOmemoSessionException

        public CannotEstablishOmemoSessionException​(OmemoDevice failed,
                                                    java.lang.Throwable reason)
    • Method Detail

      • addSuccess

        public void addSuccess​(OmemoDevice success)
      • getFailures

        public java.util.HashMap<org.jxmpp.jid.BareJid,​java.util.HashMap<OmemoDevice,​java.lang.Throwable>> getFailures()
      • getSuccesses

        public java.util.HashMap<org.jxmpp.jid.BareJid,​java.util.ArrayList<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