Created
September 16, 2015 21:30
-
-
Save nabijaczleweli/b8eb21019f76351ea508 to your computer and use it in GitHub Desktop.
10/10 error 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
if(const auto sys = envvar_or({"OS"}, nullptr)) | |
return sys; | |
throw runtime_error("the world is on fire"); // Something's *REALLY* wrong |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment