MCPcopy Create free account
hub / github.com/Apress/beginning-cpp20 / trySomething

Function trySomething

Examples/NoModules/Chapter 16/Ex16_02/Ex16_02.cpp:23–30  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

21}
22
23void trySomething(int i)
24{
25 // There's always trouble when �trying something�...
26 if (i == 0)
27 throw Trouble {};
28 else
29 throw Trouble {"Nobody knows the trouble I've seen..."};
30}

Callers 1

mainFunction · 0.70

Calls

no outgoing calls

Tested by

no test coverage detected