summaryrefslogtreecommitdiff
path: root/cpp/src/IceGrid/ObjectCache.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'cpp/src/IceGrid/ObjectCache.cpp')
-rw-r--r--cpp/src/IceGrid/ObjectCache.cpp4
1 files changed, 1 insertions, 3 deletions
diff --git a/cpp/src/IceGrid/ObjectCache.cpp b/cpp/src/IceGrid/ObjectCache.cpp
index d5f68dc0fa4..9e3c68adec0 100644
--- a/cpp/src/IceGrid/ObjectCache.cpp
+++ b/cpp/src/IceGrid/ObjectCache.cpp
@@ -65,9 +65,7 @@ ObjectCache::get(const Ice::Identity& id) const
ObjectEntryPtr entry = self.getImpl(id);
if(!entry)
{
- ObjectNotExistException ex;
- ex.id = id;
- throw ex;
+ throw ObjectNotRegisteredException(id);
}
return entry;
}