blob: 532c2d49f7daeafba6f621b5d83b8885cd228f84 [file] [log] [blame]
Jim Flynn4e755a52020-03-29 17:48:26 +01001//
2// Copyright © 2020 Arm Ltd. All rights reserved.
3// SPDX-License-Identifier: MIT
4//
5#pragma once
6
7#include <stdexcept>
8#include <string>
9
10namespace armnnProfiling
11{
12
13/// General Exception class for Profiling code
14class ProfilingException : public std::exception
15{
16public:
17 explicit ProfilingException(const std::string& message) : m_Message(message) {};
18
19 /// @return - Error message of ProfilingException
20 virtual const char* what() const noexcept override
21 {
22 return m_Message.c_str();
23 }
24
25private:
26 std::string m_Message;
27};
28
29} // namespace armnnProfiling