diff options
author | Benoit Foucher <benoit@zeroc.com> | 2002-10-01 03:15:11 +0000 |
---|---|---|
committer | Benoit Foucher <benoit@zeroc.com> | 2002-10-01 03:15:11 +0000 |
commit | bfb305ce183f070aa793657cb72a5ae5460044ae (patch) | |
tree | bdcd2b9e31da0b036a135e114e1c9724a37a1290 /cpp/src/Ice/BasicStream.cpp | |
parent | fix (diff) | |
download | ice-bfb305ce183f070aa793657cb72a5ae5460044ae.tar.bz2 ice-bfb305ce183f070aa793657cb72a5ae5460044ae.tar.xz ice-bfb305ce183f070aa793657cb72a5ae5460044ae.zip |
Improved few local exceptions and evictor fix.
Diffstat (limited to 'cpp/src/Ice/BasicStream.cpp')
-rw-r--r-- | cpp/src/Ice/BasicStream.cpp | 8 |
1 files changed, 6 insertions, 2 deletions
diff --git a/cpp/src/Ice/BasicStream.cpp b/cpp/src/Ice/BasicStream.cpp index 48b0ec5f15a..c6359f26960 100644 --- a/cpp/src/Ice/BasicStream.cpp +++ b/cpp/src/Ice/BasicStream.cpp @@ -897,7 +897,9 @@ IceInternal::BasicStream::read(const string& signatureType, const ObjectFactoryP if(!v) { - throw NoObjectFactoryException(__FILE__, __LINE__); + NoObjectFactoryException ex(__FILE__, __LINE__); + ex.type = id; + throw ex; } } _currentReadEncaps->objectsRead.push_back(v.get()); @@ -946,5 +948,7 @@ IceInternal::BasicStream::throwException(const string* throwsBegin, const string return p.first - throwsBegin; } - throw NoUserExceptionFactoryException(__FILE__, __LINE__); + NoUserExceptionFactoryException ex(__FILE__, __LINE__); + ex.type = id; + throw ex; } |