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