MCPcopy Create free account
hub / github.com/EricPengShuai/Interview / handler

Function handler

practice/exception.cpp:27–31  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

25}
26
27void handler(int n) throw(int, char, double) {
28 if (n==1) throw n;
29 if (n==2) throw 'x';
30 if (n==3) throw 1.1;
31}
32
33int main() {
34 cout << "1--befroe try block..." << endl;

Callers 1

mainFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected