From 4a882e6108ae245dff43e08e065c7fa439758738 Mon Sep 17 00:00:00 2001 From: Ruslan Skorb Date: Tue, 15 Nov 2016 19:16:18 +0200 Subject: [PATCH] `ErrorType` has been renamed to `Error` in Swift 3. --- Sources/Importing/BaseDataTransaction+Importing.swift | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/Sources/Importing/BaseDataTransaction+Importing.swift b/Sources/Importing/BaseDataTransaction+Importing.swift index 51da4e8..df41f2f 100644 --- a/Sources/Importing/BaseDataTransaction+Importing.swift +++ b/Sources/Importing/BaseDataTransaction+Importing.swift @@ -36,7 +36,7 @@ public extension BaseDataTransaction { - parameter into: an `Into` clause specifying the entity type - parameter source: the object to import values from - - throws: an `ErrorType` thrown from any of the `ImportableObject` methods + - throws: an `Error` thrown from any of the `ImportableObject` methods - returns: the created `ImportableObject` instance, or `nil` if the import was ignored */ public func importObject( @@ -68,7 +68,7 @@ public extension BaseDataTransaction { - parameter object: the `NSManagedObject` to update - parameter source: the object to import values from - - throws: an `ErrorType` thrown from any of the `ImportableObject` methods + - throws: an `Error` thrown from any of the `ImportableObject` methods */ public func importObject( _ object: T, @@ -97,7 +97,7 @@ public extension BaseDataTransaction { - parameter into: an `Into` clause specifying the entity type - parameter sourceArray: the array of objects to import values from - - throws: an `ErrorType` thrown from any of the `ImportableObject` methods + - throws: an `Error` thrown from any of the `ImportableObject` methods - returns: the array of created `ImportableObject` instances */ public func importObjects( @@ -135,7 +135,7 @@ public extension BaseDataTransaction { - parameter into: an `Into` clause specifying the entity type - parameter source: the object to import values from - - throws: an `ErrorType` thrown from any of the `ImportableUniqueObject` methods + - throws: an `Error` thrown from any of the `ImportableUniqueObject` methods - returns: the created/updated `ImportableUniqueObject` instance, or `nil` if the import was ignored */ public func importUniqueObject( @@ -190,7 +190,7 @@ public extension BaseDataTransaction { - parameter into: an `Into` clause specifying the entity type - parameter sourceArray: the array of objects to import values from - parameter preProcess: a closure that lets the caller tweak the internal `UniqueIDType`-to-`ImportSource` mapping to be used for importing. Callers can remove from/add to/update `mapping` and return the updated array from the closure. - - throws: an `ErrorType` thrown from any of the `ImportableUniqueObject` methods + - throws: an `Error` thrown from any of the `ImportableUniqueObject` methods - returns: the array of created/updated `ImportableUniqueObject` instances */ public func importUniqueObjects(