Class SessionCreationException
java.lang.Object
java.lang.Throwable
java.lang.Exception
java.lang.RuntimeException
io.github.fherbreteau.vodozemac.exception.VodozemacException
io.github.fherbreteau.vodozemac.exception.SessionCreationException
- All Implemented Interfaces:
Serializable
Thrown when creating an inbound Olm session from a pre-key message fails.
This includes failures due to:
- The pre-key message containing an unknown one-time key
- The identity key not matching the one in the pre-key message
- The session config (version) not matching the one used to encrypt the pre-key message
- Receiving a normal message instead of a pre-key message
- Author:
- François HERBRETEAU
- See Also:
-
Constructor Summary
ConstructorsConstructorDescriptionSessionCreationException(String message) Constructs a newSessionCreationExceptionwith the specified detail message.SessionCreationException(String message, Throwable cause) Constructs a newSessionCreationExceptionwith the specified detail message and a cause. -
Method Summary
Methods inherited from class Throwable
addSuppressed, fillInStackTrace, getCause, getLocalizedMessage, getMessage, getStackTrace, getSuppressed, initCause, printStackTrace, printStackTrace, printStackTrace, setStackTrace, toString
-
Constructor Details
-
SessionCreationException
Constructs a newSessionCreationExceptionwith the specified detail message.- Parameters:
message- the detail message
-
SessionCreationException
-