Created
December 22, 2017 16:40
-
-
Save mahmudahsan/35b5f213650a8bd60fbde8d9f6030dc6 to your computer and use it in GitHub Desktop.
Error handling in swift
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
func sampleThrowError() throws -> String { | |
throw SampleError.sample1 | |
return "" | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment