Last active
October 19, 2019 19:40
-
-
Save isaac-weisberg/9fc5190e84d95bf675336cbdbde49bfd 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
private enum BusinessLogicError: Error { | |
case downloadError(ForecastDownloadError) | |
case temperatureInvalid(Double) | |
} | |
struct MainViewModel { | |
/* implementation omitted, but includes | |
the logic of validating the temperature */ | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment