23 lines
569 B
Swift
23 lines
569 B
Swift
//
|
|
// Storage.swift
|
|
// ZcashLightClientKit
|
|
//
|
|
// Created by Francisco Gindre on 10/13/19.
|
|
// Copyright © 2019 Electric Coin Company. All rights reserved.
|
|
//
|
|
|
|
import Foundation
|
|
|
|
enum StorageError: Error {
|
|
case couldNotCreate
|
|
case openFailed
|
|
case closeFailed
|
|
case operationFailed
|
|
case updateFailed
|
|
case malformedEntity(fields: [String]?)
|
|
case transactionFailed(underlyingError: Error)
|
|
case invalidMigrationVersion(version: Int32)
|
|
case migrationFailed(underlyingError: Error)
|
|
case migrationFailedWithMessage(message: String)
|
|
}
|