Created
July 18, 2019 19:21
-
-
Save quintonpryce/797e0a22df151d7f9623603d6d71fb4d to your computer and use it in GitHub Desktop.
Failure Handling
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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