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/SendTimelinePacket.cpp b/src/profiling/SendTimelinePacket.cpp
index e44e5aa..62d1530 100644
--- a/src/profiling/SendTimelinePacket.cpp
+++ b/src/profiling/SendTimelinePacket.cpp
@@ -66,11 +66,11 @@
// Check if there is enough space in the buffer
if (m_WriteBuffer == nullptr)
{
- throw BufferExhaustion("No free buffers left", CHECK_LOCATION());
+ throw arm::pipe::BufferExhaustion("No free buffers left", LOCATION());
}
if (reserved < m_Offset)
{
- throw BufferExhaustion("Reserved space too small for use", CHECK_LOCATION());
+ throw arm::pipe::BufferExhaustion("Reserved space too small for use", LOCATION());
}
if (m_DirectoryPackage)
@@ -144,7 +144,7 @@
numberOfBytesWritten);
if (result != TimelinePacketStatus::Ok)
{
- throw armnn::RuntimeException("Error processing TimelineMessageDirectoryPackage", CHECK_LOCATION());
+ throw arm::pipe::ProfilingException("Error processing TimelineMessageDirectoryPackage", LOCATION());
}
// Commit the message
@@ -154,7 +154,7 @@
}
catch (...)
{
- throw armnn::RuntimeException("Error processing TimelineMessageDirectoryPackage", CHECK_LOCATION());
+ throw arm::pipe::ProfilingException("Error processing TimelineMessageDirectoryPackage", LOCATION());
}
}