Class CannotEstablishOmemoSessionException
- java.lang.Object
-
- java.lang.Throwable
-
- java.lang.Exception
-
- org.jivesoftware.smackx.omemo.exceptions.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
-
-
Constructor Summary
Constructors Constructor Description CannotEstablishOmemoSessionException(OmemoDevice failed, java.lang.Throwable reason)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description void
addFailures(CannotEstablishOmemoSessionException otherFailures)
void
addSuccess(OmemoDevice success)
java.util.HashMap<BareJid,java.util.HashMap<OmemoDevice,java.lang.Throwable>>
getFailures()
java.util.HashMap<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.
-
-
-
Constructor Detail
-
CannotEstablishOmemoSessionException
public CannotEstablishOmemoSessionException(OmemoDevice failed, java.lang.Throwable reason)
-
-
Method Detail
-
addFailures
public void addFailures(CannotEstablishOmemoSessionException otherFailures)
-
addSuccess
public void addSuccess(OmemoDevice success)
-
getFailures
public java.util.HashMap<BareJid,java.util.HashMap<OmemoDevice,java.lang.Throwable>> getFailures()
-
getSuccesses
public java.util.HashMap<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
-
-