Files
Morgan Pretty 1a5b00a95b Updated the home screen to be based on the new ObservationManager
• Rebuild the observation system so UI updates can be triggered arbitrarily rather than just from database changes (requires manual evert firing)
• Refactored the TypingIndicators to be an actor
• Fixed an issue where sharing something from within the app via Session wouldn't update the conversation list content
2025-07-08 16:21:25 +10:00

41 lines
1.4 KiB
Swift

// Copyright © 2022 Rangeproof Pty Ltd. All rights reserved.
//
// stringlint:disable
import Foundation
public enum JobRunnerError: Error, Equatable, CustomStringConvertible {
case executorMissing
case jobIdMissing
case requiredThreadIdMissing
case requiredInteractionIdMissing
case missingRequiredDetails
case missingDependencies
case possibleDuplicateJob(permanentFailure: Bool)
case possibleDeferralLoop
var wasPossibleDeferralLoop: Bool {
switch self {
case .possibleDeferralLoop: return true
default: return false
}
}
public var description: String {
switch self {
case .executorMissing: return "The job executor was missing."
case .jobIdMissing: return "The job had no id."
case .requiredThreadIdMissing: return "A threadId was required but not present."
case .requiredInteractionIdMissing: return "An interactionId was required but not present."
case .missingRequiredDetails: return "The job had required details which were missing."
case .missingDependencies: return "The job had missing dependencies."
case .possibleDuplicateJob: return "This job might be the duplicate of another running job."
case .possibleDeferralLoop: return "The job might have been stuck in a deferral loop."
}
}
}