diff options
Diffstat (limited to 'src/profiling/SendTimelinePacket.hpp')
-rw-r--r-- | src/profiling/SendTimelinePacket.hpp | 16 |
1 files changed, 6 insertions, 10 deletions
diff --git a/src/profiling/SendTimelinePacket.hpp b/src/profiling/SendTimelinePacket.hpp index f915dafea7..fe8c5d45e2 100644 --- a/src/profiling/SendTimelinePacket.hpp +++ b/src/profiling/SendTimelinePacket.hpp @@ -97,8 +97,8 @@ void SendTimelinePacket::ForwardWriteBinaryFunction(Func& func, Params&& ... par continue; case TimelinePacketStatus::Error: - throw armnn::RuntimeException("Error processing while sending TimelineBinaryPacket", CHECK_LOCATION - ()); + throw arm::pipe::ProfilingException("Error processing while sending TimelineBinaryPacket", + LOCATION()); default: m_Offset += numberOfBytesWritten; @@ -107,23 +107,19 @@ void SendTimelinePacket::ForwardWriteBinaryFunction(Func& func, Params&& ... par } } } - catch (const armnn::RuntimeException& ex) - { - // don't swallow in the catch all block - throw ex; - } - catch (const BufferExhaustion& ex) + catch (const arm::pipe::BufferExhaustion& ex) { // ditto throw ex; } - catch (const armnn::Exception& ex) + catch (const arm::pipe::ProfilingException& ex) { + // don't swallow in the catch all block throw ex; } catch ( ... ) { - throw armnn::RuntimeException("Unknown Exception thrown while sending TimelineBinaryPacket", CHECK_LOCATION()); + throw arm::pipe::ProfilingException("Unknown Exception thrown while sending TimelineBinaryPacket", LOCATION()); } } |