aboutsummaryrefslogtreecommitdiffstats
path: root/src/test.cc
diff options
context:
space:
mode:
Diffstat (limited to 'src/test.cc')
-rw-r--r--src/test.cc17
1 files changed, 17 insertions, 0 deletions
diff --git a/src/test.cc b/src/test.cc
index c802c71..45806a3 100644
--- a/src/test.cc
+++ b/src/test.cc
@@ -175,6 +175,23 @@ int main(void)
delete partition;
delete site;
+ try
+ {
+ throw libgamma::create_error(EIO);
+ }
+ catch (const libgamma::LibgammaException& err)
+ {
+ std::cout << err.what() << std::endl;
+ }
+ try
+ {
+ throw libgamma::create_error(LIBGAMMA_NO_SUCH_ADJUSTMENT_METHOD);
+ }
+ catch (const libgamma::LibgammaException& err)
+ {
+ std::cout << err.what() << std::endl;
+ }
+
return 0;
}