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/NodeCache.cpp | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) (limited to 'cpp/src/IceGrid/NodeCache.cpp') diff --git a/cpp/src/IceGrid/NodeCache.cpp b/cpp/src/IceGrid/NodeCache.cpp index 6acb54222d7..041d9e08a9d 100644 --- a/cpp/src/IceGrid/NodeCache.cpp +++ b/cpp/src/IceGrid/NodeCache.cpp @@ -327,9 +327,7 @@ NodeCache::get(const string& name, bool create) const } if(!entry) { - NodeNotExistException ex; - ex.name = name; - throw ex; + throw NodeNotExistException(name); } return entry; } -- cgit v1.2.3