You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
|
|
// // PromiseError.swift // then // // Created by Sacha Durand Saint Omer on 23/02/2017. // Copyright © 2017 s4cha. All rights reserved. //
import Foundation
public enum PromiseError: Error { case `default` case validationFailed case retryInvalidInput case unwrappingFailed case timeout }
extension PromiseError: Equatable { }
public func == (lhs: PromiseError, rhs: PromiseError) -> Bool { switch (lhs, rhs) { case (.default, .default): return true case (.validationFailed, .validationFailed): return true case (.retryInvalidInput, .retryInvalidInput): return true case (.unwrappingFailed, .unwrappingFailed): return true default: return false } }
|