SaveResult

public enum SaveResult : Equatable

A result object representing the result of saving an NSManagedObjectContext.

  • The success result.

    Declaration

    Swift

    case success
  • The failure result, containing an NSError instance that describes the error.

    Declaration

    Swift

    case failure(NSError)
  • Declaration

    Swift

    public func error() -> NSError?

    Return Value

    The result’s NSError if .Failure, otherwise nil.