blob: 52b28e9382aa49ddb6b231856a6ffa596e745e2b (
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
30
31
32
33
34
35
36
37
38
39
40
41
42
|
//
// Copyright © 2017 Arm Ltd. All rights reserved.
// SPDX-License-Identifier: MIT
//
#include <armnn/Exceptions.hpp>
#include <string>
namespace armnn
{
Exception::Exception(const std::string& message)
: m_Message{message}
{
}
Exception::Exception(const std::string& message,
const CheckLocation& location)
: m_Message{message}
{
m_Message += location.AsString();
}
Exception::Exception(const Exception& other,
const std::string& message,
const CheckLocation& location)
: m_Message{other.m_Message}
{
m_Message += "\n" + message + location.AsString();
}
const char* Exception::what() const noexcept
{
return m_Message.c_str();
}
UnimplementedException::UnimplementedException()
: Exception("Function not yet implemented")
{
}
}
|