diff options
author | deva <deva> | 2009-07-30 11:57:22 +0000 |
---|---|---|
committer | deva <deva> | 2009-07-30 11:57:22 +0000 |
commit | f249acf5a12ec0a40584042354a4054343dc6425 (patch) | |
tree | dfef0e2d956b0669bd3eb5245d81fd72e4197ae7 /server/src/exception.cc | |
parent | 8d279b1839cb33de534c907c0731ddb3e4b7159e (diff) |
Added Exception class unit test.
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; } |