diff options
Diffstat (limited to 'src/test.cc')
-rw-r--r-- | src/test.cc | 17 |
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; } |