diff options
author | Benoit Foucher <benoit@zeroc.com> | 2002-10-22 13:04:33 +0000 |
---|---|---|
committer | Benoit Foucher <benoit@zeroc.com> | 2002-10-22 13:04:33 +0000 |
commit | 9b14cde48390a7205b9275621d51de8affcb81d4 (patch) | |
tree | b85902e58dcad090588b9a37a4d9f9a676a979f7 /cpp/src | |
parent | fixes (diff) | |
download | ice-9b14cde48390a7205b9275621d51de8affcb81d4.tar.bz2 ice-9b14cde48390a7205b9275621d51de8affcb81d4.tar.xz ice-9b14cde48390a7205b9275621d51de8affcb81d4.zip |
Fixed ice_print message for database exceptions
Diffstat (limited to 'cpp/src')
-rw-r--r-- | cpp/src/Freeze/DBI.cpp | 11 |
1 files changed, 6 insertions, 5 deletions
diff --git a/cpp/src/Freeze/DBI.cpp b/cpp/src/Freeze/DBI.cpp index 56ba8e9acdc..47c9180e831 100644 --- a/cpp/src/Freeze/DBI.cpp +++ b/cpp/src/Freeze/DBI.cpp @@ -37,10 +37,11 @@ public: ~DBEnvironmentMap() { // - // Unfortunately we can have this assertion here. If a Freeze + // Unfortunately we can't use this assertion here. If a Freeze // application forks processes and if it can't execv a new // process, the forked process will unload the Freeze shared - // library and will hit this assertion. + // library and the assertion will fail if a database + // environment was already open before the process forked. // // assert(_map.empty()); } @@ -1028,19 +1029,19 @@ void Freeze::DBDeadlockException::ice_print(ostream& out) const { Exception::ice_print(out); - out << ":\nunknown local exception"; + out << ":\ndatabase deadlock:\n" << message; } void Freeze::DBNotFoundException::ice_print(ostream& out) const { Exception::ice_print(out); - out << ":\nunknown local exception"; + out << ":\ndatabase record not found:\n" << message; } void Freeze::DBException::ice_print(ostream& out) const { Exception::ice_print(out); - out << ":\nunknown local exception"; + out << ":\n" << message; } |