Added FileProviderHTTPError protocol

- All errors from local provider is now from Cocoa error domain. No URL domain anymore.
- All errors from WebDAV/OneDrive/Dropbox conform to FileProviderHTTPError
This commit is contained in:
Amir Abbas
2017-02-11 18:05:21 +03:30
parent edd4914ca7
commit 42579be371
7 changed files with 38 additions and 32 deletions
+1 -5
View File
@@ -8,14 +8,10 @@
import Foundation
public struct FileProviderDropboxError: Error, CustomStringConvertible {
public struct FileProviderDropboxError: FileProviderHTTPError {
public let code: FileProviderHTTPErrorCode
public let path: String
public let errorDescription: String?
public var description: String {
return code.description
}
}
public final class DropboxFileObject: FileObject {