Skip to content

Instantly share code, notes, and snippets.

@quintonpryce
Created July 18, 2019 19:21
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save quintonpryce/797e0a22df151d7f9623603d6d71fb4d to your computer and use it in GitHub Desktop.
Save quintonpryce/797e0a22df151d7f9623603d6d71fb4d to your computer and use it in GitHub Desktop.
Failure Handling
public protocol FailureHandler {
func failure(_ message: String)
}
class SimpleFailureHandler: FailureHandler {
func failure(_ message: String) {
assertionFailure(message)
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment