diff options
Diffstat (limited to 'server/src/exception.cc')
-rw-r--r-- | server/src/exception.cc | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/server/src/exception.cc b/server/src/exception.cc index 57bd6bf..09c6918 100644 --- a/server/src/exception.cc +++ b/server/src/exception.cc @@ -63,13 +63,19 @@ int main() throw MyException(); } catch( MyException &e ) { printf("%s\n", e.what()); + goto on; } + return 1; + on: try { throw MyExtException("Yeaaah!"); } catch( MyExtException &e ) { printf("%s\n", e.what()); + goto onandon; } + return 1; + onandon: return 0; } |