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:
- Serialized Form
-
-
Constructor Summary
Constructors Constructor Description CannotEstablishOmemoSessionException(OmemoDevice failed, Throwable reason)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description void
addFailures(CannotEstablishOmemoSessionException otherFailures)
void
addSuccess(OmemoDevice success)
HashMap<BareJid,HashMap<OmemoDevice,Throwable>>
getFailures()
HashMap<BareJid,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
-
-
-
-
Constructor Detail
-
CannotEstablishOmemoSessionException
public CannotEstablishOmemoSessionException(OmemoDevice failed, Throwable reason)
-
-
Method Detail
-
addFailures
public void addFailures(CannotEstablishOmemoSessionException otherFailures)
-
addSuccess
public void addSuccess(OmemoDevice success)
-
getFailures
public HashMap<BareJid,HashMap<OmemoDevice,Throwable>> getFailures()
-
getSuccesses
public HashMap<BareJid,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
-
-