IVGCVSW-6821 Remove dependency on armnn::Exception classes from the Profiling code

Change-Id: Id46a9a0576091df21b2af5b472f1ca5c6335e8a3
Signed-off-by: Jim Flynn <jim.flynn@arm.com>
diff --git a/src/profiling/ProfilingConnectionDumpToFileDecorator.cpp b/src/profiling/ProfilingConnectionDumpToFileDecorator.cpp
index fff26d4..a0c5bc2 100644
--- a/src/profiling/ProfilingConnectionDumpToFileDecorator.cpp
+++ b/src/profiling/ProfilingConnectionDumpToFileDecorator.cpp
@@ -5,8 +5,8 @@
 
 #include "ProfilingConnectionDumpToFileDecorator.hpp"
 
-#include <armnn/Exceptions.hpp>
 #include <armnn/utility/NumericCast.hpp>
+#include <common/include/ProfilingException.hpp>
 
 #include <fstream>
 
@@ -26,7 +26,7 @@
 {
     if (!m_Connection)
     {
-        throw InvalidArgumentException("Connection cannot be nullptr");
+        throw arm::pipe::InvalidArgumentException("Connection cannot be nullptr");
     }
 }
 
@@ -154,7 +154,7 @@
 void ProfilingConnectionDumpToFileDecorator::Fail(const std::string& errorMessage)
 {
     Close();
-    throw armnn::RuntimeException(errorMessage);
+    throw arm::pipe::ProfilingException(errorMessage);
 }
 
 } // namespace pipe