aboutsummaryrefslogtreecommitdiff
path: root/src/profiling/CommandHandler.cpp
diff options
context:
space:
mode:
authorJim Flynn <jim.flynn@arm.com>2022-03-08 21:23:44 +0000
committerJim Flynn <jim.flynn@arm.com>2022-03-09 22:14:52 +0000
commitf9db3efe5ce2b989b59c47056e1b84b32d2f1100 (patch)
treeb1fd75d5f951f9036a8f0b37211fc30b4d651262 /src/profiling/CommandHandler.cpp
parent0e5588f3289845d1bd7597ade081764018eda2cc (diff)
downloadarmnn-f9db3efe5ce2b989b59c47056e1b84b32d2f1100.tar.gz
IVGCVSW-6821 Remove dependency on armnn::Exception classes from the Profiling code
Change-Id: Id46a9a0576091df21b2af5b472f1ca5c6335e8a3 Signed-off-by: Jim Flynn <jim.flynn@arm.com>
Diffstat (limited to 'src/profiling/CommandHandler.cpp')
-rw-r--r--src/profiling/CommandHandler.cpp6
1 files changed, 3 insertions, 3 deletions
diff --git a/src/profiling/CommandHandler.cpp b/src/profiling/CommandHandler.cpp
index f709b2826c..0cacf22536 100644
--- a/src/profiling/CommandHandler.cpp
+++ b/src/profiling/CommandHandler.cpp
@@ -65,7 +65,7 @@ void CommandHandler::HandleCommands(IProfilingConnection& profilingConnection)
ARMNN_ASSERT(commandHandlerFunctor);
commandHandlerFunctor->operator()(packet);
}
- catch (const armnn::TimeoutException&)
+ catch (const arm::pipe::TimeoutException&)
{
if (m_StopAfterTimeout.load())
{
@@ -85,10 +85,10 @@ void CommandHandler::HandleCommands(IProfilingConnection& profilingConnection)
m_KeepRunning.store(false);
}
}
- catch (const armnn::Exception& e)
+ catch (...)
{
// Log the error and continue
- ARMNN_LOG(warning) << "An error has occurred when handling a command: " << e.what();
+ ARMNN_LOG(warning) << "An unknown error has occurred when handling a command";
// Did we get here because the socket failed?
if ( !profilingConnection.IsOpen() )
{