summaryrefslogtreecommitdiff
path: root/server/src/exception.cc
diff options
context:
space:
mode:
authordeva <deva>2009-07-30 11:57:22 +0000
committerdeva <deva>2009-07-30 11:57:22 +0000
commitf249acf5a12ec0a40584042354a4054343dc6425 (patch)
treedfef0e2d956b0669bd3eb5245d81fd72e4197ae7 /server/src/exception.cc
parent8d279b1839cb33de534c907c0731ddb3e4b7159e (diff)
Added Exception class unit test.
Diffstat (limited to 'server/src/exception.cc')
-rw-r--r--server/src/exception.cc6
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;
}