Class SessionCreationException

All Implemented Interfaces:
Serializable

public class SessionCreationException extends VodozemacException
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 Details

    • SessionCreationException

      public SessionCreationException(String message)
      Constructs a new SessionCreationException with the specified detail message.
      Parameters:
      message - the detail message
    • SessionCreationException

      public SessionCreationException(String message, Throwable cause)
      Constructs a new SessionCreationException with the specified detail message and a cause.
      Parameters:
      message - the detail message
      cause - the cause