aboutsummaryrefslogtreecommitdiffstats
path: root/src/test.cc
diff options
context:
space:
mode:
authorMattias Andrée <maandree@operamail.com>2014-09-03 19:12:59 +0200
committerMattias Andrée <maandree@operamail.com>2014-09-03 19:12:59 +0200
commitae6072ece6ac02a0d2438d110af90cf6ca2f3f50 (patch)
treeb27c31cfe1cb02cf865e23d639c7c06a234b2f56 /src/test.cc
parentlibgamma_group_gid and libgamma_group_name (diff)
downloadlibgammamm-ae6072ece6ac02a0d2438d110af90cf6ca2f3f50.tar.gz
libgammamm-ae6072ece6ac02a0d2438d110af90cf6ca2f3f50.tar.bz2
libgammamm-ae6072ece6ac02a0d2438d110af90cf6ca2f3f50.tar.xz
gamma ramps and exception class
Signed-off-by: Mattias Andrée <maandree@operamail.com>
Diffstat (limited to '')
-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;
}