diff options
author | Bernard Normier <bernard@zeroc.com> | 2004-04-17 18:45:40 +0000 |
---|---|---|
committer | Bernard Normier <bernard@zeroc.com> | 2004-04-17 18:45:40 +0000 |
commit | e01123a1b2958c7f905e8ef1cb31dfc286803dc1 (patch) | |
tree | 9b0265c7dceb7e6bbf860add04405ca8486c82ad /cpp/src/Freeze/ObjectStore.cpp | |
parent | minor (diff) | |
download | ice-e01123a1b2958c7f905e8ef1cb31dfc286803dc1.tar.bz2 ice-e01123a1b2958c7f905e8ef1cb31dfc286803dc1.tar.xz ice-e01123a1b2958c7f905e8ef1cb31dfc286803dc1.zip |
Freeze fixes
Diffstat (limited to 'cpp/src/Freeze/ObjectStore.cpp')
-rw-r--r-- | cpp/src/Freeze/ObjectStore.cpp | 16 |
1 files changed, 13 insertions, 3 deletions
diff --git a/cpp/src/Freeze/ObjectStore.cpp b/cpp/src/Freeze/ObjectStore.cpp index 04823ef4fe8..d8e955c8321 100644 --- a/cpp/src/Freeze/ObjectStore.cpp +++ b/cpp/src/Freeze/ObjectStore.cpp @@ -76,9 +76,19 @@ Freeze::ObjectStore::ObjectStore(const string& facet, { } } - DatabaseException ex(__FILE__, __LINE__); - ex.message = dx.what(); - throw ex; + + if(dx.get_errno() == ENOENT) + { + NotFoundException ex(__FILE__, __LINE__); + ex.message = dx.what(); + throw ex; + } + else + { + DatabaseException ex(__FILE__, __LINE__); + ex.message = dx.what(); + throw ex; + } } } |