Skip to content

Instantly share code, notes, and snippets.

@jzucker2
Created February 17, 2017 19:25
Show Gist options
  • Save jzucker2/5f82e55e756e26cc8a129a97151821bc to your computer and use it in GitHub Desktop.
Save jzucker2/5f82e55e756e26cc8a129a97151821bc to your computer and use it in GitHub Desktop.
do {
try ErrorGenerator.generateAlertControllerError()
} catch let showError as ExampleAlertControllerError where showError == .show {
show(alertControllerError: showError)
} catch {
fatalError(error.localizedDescription)
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment