From 7f0816001e085f482f8f9a34b7f8e06435907510 Mon Sep 17 00:00:00 2001 From: Jose Date: Wed, 20 Sep 2017 11:05:13 +0200 Subject: Clean C++ exception code to only throw exception types - Update C++ code to only throw types derived from C++ exception - Update C++ code to use one-shot constructors to create the exceptions Fix bug ICE-7892 --- cpp/src/IceGrid/ReplicaCache.cpp | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) (limited to 'cpp/src/IceGrid/ReplicaCache.cpp') diff --git a/cpp/src/IceGrid/ReplicaCache.cpp b/cpp/src/IceGrid/ReplicaCache.cpp index 3f9ab61240d..2444fdad919 100644 --- a/cpp/src/IceGrid/ReplicaCache.cpp +++ b/cpp/src/IceGrid/ReplicaCache.cpp @@ -155,9 +155,7 @@ ReplicaCache::get(const string& name) const ReplicaEntryPtr entry = getImpl(name); if(!entry) { - RegistryNotExistException ex; - ex.name = name; - throw ex; + throw RegistryNotExistException(name); } return entry; } -- cgit v1.2.3