// 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 }