Skip to content

Instantly share code, notes, and snippets.

@EllinaKuznetcova
Created December 9, 2016 15:26
Show Gist options
  • Save EllinaKuznetcova/c7daa75f2d277ce60cc14eacbeb464ca to your computer and use it in GitHub Desktop.
Save EllinaKuznetcova/c7daa75f2d277ce60cc14eacbeb464ca to your computer and use it in GitHub Desktop.
enum InAppErrors: Swift.Error {
case noSubscriptionPurchased
case noProductsAvailable
var localizedDescription: String {
switch self {
case .noSubscriptionPurchased:
return "No subscription purchased"
case .noProductsAvailable:
return "No products available"
}
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment