You cannot select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
session-ios/SessionUtilitiesKit/Database/StorageError.swift

33 lines
963 B
Swift

// Copyright © 2022 Rangeproof Pty Ltd. All rights reserved.
import Foundation
public enum StorageError: Error {
case generic
case databaseInvalid
case databaseSuspended
case startupFailed
case migrationFailed
case migrationNoLongerSupported
case invalidKeySpec
case keySpecCreationFailed
case keySpecInaccessible
case decodingFailed
case invalidQueryResult
/// This error is thrown when a synchronous operation takes longer than `Storage.transactionDeadlockTimeoutSeconds`,
/// the assumption being that if we know an operation is going to take a long time then we should probably be handling it asynchronously
/// rather than a synchronous way
case transactionDeadlockTimeout
case validStorageIncorrectlyHandledAsError
case failedToSave
case objectNotFound
case objectNotSaved
case invalidSearchPattern
case invalidData
case devRemigrationRequired
}