mirror of
https://github.com/hyperoslo/Cache.git
synced 2026-04-07 19:17:36 +00:00
19 lines
484 B
Swift
19 lines
484 B
Swift
import Foundation
|
|
|
|
public enum StorageError: Error {
|
|
/// Object can not be found
|
|
case notFound
|
|
/// Object is found, but casting to requested type failed
|
|
case typeNotMatch
|
|
/// The file attributes are malformed
|
|
case malformedFileAttributes
|
|
/// Can't perform Decode
|
|
case decodingFailed
|
|
/// Can't perform Encode
|
|
case encodingFailed
|
|
/// The storage has been deallocated
|
|
case deallocated
|
|
/// Fail to perform transformation to or from Data
|
|
case transformerFail
|
|
}
|