summaryrefslogtreecommitdiff
path: root/cpp/src/IceStorm/TopicManagerI.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'cpp/src/IceStorm/TopicManagerI.cpp')
-rw-r--r--cpp/src/IceStorm/TopicManagerI.cpp8
1 files changed, 2 insertions, 6 deletions
diff --git a/cpp/src/IceStorm/TopicManagerI.cpp b/cpp/src/IceStorm/TopicManagerI.cpp
index db815c72654..8f0ddd0c6df 100644
--- a/cpp/src/IceStorm/TopicManagerI.cpp
+++ b/cpp/src/IceStorm/TopicManagerI.cpp
@@ -316,9 +316,7 @@ TopicManagerImpl::create(const string& name)
reap();
if(_topics.find(name) != _topics.end())
{
- TopicExists ex;
- ex.name = name;
- throw ex;
+ throw TopicExists(name);
}
// Identity is <instanceName>/topic.<topicname>
@@ -362,9 +360,7 @@ TopicManagerImpl::retrieve(const string& name) const
map<string, TopicImplPtr>::const_iterator p = _topics.find(name);
if(p == _topics.end())
{
- NoSuchTopic ex;
- ex.name = name;
- throw ex;
+ throw NoSuchTopic(name);
}
return p->second->proxy();