StackResult

public enum StackResult : Equatable

A result object representing the result of creating a CoreDataStack via a CoreDataStackFactory.

  • The success result, containing the successfully initialized CoreDataStack.

    Declaration

    Swift

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

    Declaration

    Swift

    case failure(NSError)
  • Declaration

    Swift

    public func stack() -> CoreDataStack?

    Return Value

    The result’s CoreDataStack if .Success, otherwise nil.

  • Declaration

    Swift

    public func error() -> NSError?

    Return Value

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