Skip to content
Snippets Groups Projects
Commit 190f18ac authored by Rainer Kartmann's avatar Rainer Kartmann
Browse files

Catch not registered exception

parent ded49c4d
No related branches found
No related tags found
2 merge requests!171Periodic merge of armem/dev into master,!170ArMem Viewer: Resolve Memory IDs
......@@ -25,7 +25,16 @@ namespace armarx::armem::client
void MemoryNameSystem::update()
{
ARMARX_CHECK_NOT_NULL(mns);
data::GetAllRegisteredMemoriesResult result = mns->getAllRegisteredMemories();
data::GetAllRegisteredMemoriesResult result;
try
{
result = mns->getAllRegisteredMemories();
}
catch (const Ice::NotRegisteredException& e)
{
throw error::MemoryNameSystemQueryFailed(e.what());
}
if (result.success)
{
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment