MlsError

public enum MlsError : Swift.Error, Equatable, Hashable, Foundation.LocalizedError
extension MlsError: Sendable

Errors produced by the MLS layer.

  • The byte vector included in this error variant is the raw conversation id.

    We cannot provide a proper ConversationId instance because of a uniffi bug: https://github.com/mozilla/uniffi-rs/issues/2409.

    Declaration

    Swift

    case ConversationAlreadyExists(conversationId: Data
    )
  • If this error is produced, we have likely forked our state from the state of the DS.

    Declaration

    Swift

    case SelfCommitIgnored
  • A Welcome message references a KeyPackage that has already been deleted locally.

    This happens when the distribution service cannot flag KeyPackages as claimed. A client requests its old KeyPackages to be deleted, but one has already been claimed by another client to create a Welcome. The only solution is for the recipient to join the group with an external commit instead.

    Declaration

    Swift

    case OrphanWelcome
  • Undocumented

    Declaration

    Swift

    case MessageRejected(reason: String
    )
  • Undocumented

    Declaration

    Swift

    case InvalidCredentials(reason: String
    )
  • Undocumented

    Declaration

    Swift

    case Other(msg: String
    )
  • Declaration

    Swift

    public var errorDescription: String? { get }