| 35 | int result() { return _result; } |
| 36 | |
| 37 | int c_adder(int a, int b) |
| 38 | { |
| 39 | /*_1*/ try { |
| 40 | /*_2*/ try { |
| 41 | /*_3*/ try { |
| 42 | _result = cpp_adder(a, b); |
| 43 | /*+3a*/ } catch (MathError& e) { |
| 44 | if (string(e.what()).find("not-found-here") == string::npos) |
| 45 | throw MathError(string("Special exception caught: ") + typeid(e).name() + ": " + e.what()); |
| 46 | else |
| 47 | throw; |
| 48 | /*+3b*/ } catch (exception& e) { |
| 49 | throw; |
| 50 | } |
| 51 | /*+2*/ } catch (exception& e) { |
| 52 | throw; |
| 53 | } |
| 54 | return 0; |
| 55 | /*+1*/ } catch (exception& e) { |
| 56 | _latest_err_msg = string(typeid(e).name()) + ": " + e.what(); |
| 57 | return 1; |
| 58 | } |
| 59 | } |
| 60 | } |
| 61 | |
| 62 | int main() { |