Created
February 10, 2019 17:19
-
-
Save quentinfasquel/32c046b8f9853b0bfcf66f02a2121935 to your computer and use it in GitHub Desktop.
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
// Given a block `let mayRaiseAnException: () -> Void` | |
if let exception = objc_tryCatch(mayRaiseAnException) { | |
// Here is your caugth exception | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment