mirror of
https://github.com/lux-tel/session-ios.git
synced 2026-10-30 20:38:32 +00:00
• Cleaned up API structures to be more consistent • Moved OpenGroupAPI into SessionNetworkingKit • Moved PushNotificationAPI into SessionNetworkingKit • Renamed to OpenGroupAPI to SOGSAPI
26 lines
840 B
Swift
26 lines
840 B
Swift
// Copyright © 2022 Rangeproof Pty Ltd. All rights reserved.
|
|
//
|
|
// stringlint:disable
|
|
|
|
import Foundation
|
|
|
|
public enum SOGSError: Error, CustomStringConvertible {
|
|
case decryptionFailed
|
|
case signingFailed
|
|
case noPublicKey
|
|
case invalidEmoji
|
|
case invalidPoll
|
|
case blindedLookupMissingCommunityInfo
|
|
|
|
public var description: String {
|
|
switch self {
|
|
case .decryptionFailed: return "Couldn't decrypt response."
|
|
case .signingFailed: return "Couldn't sign message."
|
|
case .noPublicKey: return "Couldn't find server public key."
|
|
case .invalidEmoji: return "The emoji is invalid."
|
|
case .invalidPoll: return "Poller in invalid state."
|
|
case .blindedLookupMissingCommunityInfo: return "Blinded lookup missing community info."
|
|
}
|
|
}
|
|
}
|