summaryrefslogtreecommitdiff
path: root/cpp/src/Ice/BasicStream.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'cpp/src/Ice/BasicStream.cpp')
-rw-r--r--cpp/src/Ice/BasicStream.cpp8
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;
}