ArmNN
 25.11
Loading...
Searching...
No Matches
Exceptions.cpp
Go to the documentation of this file.
1//
2// Copyright © 2017 Arm Ltd. All rights reserved.
3// SPDX-License-Identifier: MIT
4//
6
7#include <string>
8
9namespace armnn
10{
11
12Exception::Exception(const std::string& message)
13: m_Message{message}
14{
15}
16
17Exception::Exception(const std::string& message,
18 const CheckLocation& location)
19: m_Message{message}
20{
21 m_Message += location.AsString();
22}
23
25 const std::string& message,
26 const CheckLocation& location)
27: m_Message{other.m_Message}
28{
29 m_Message += "\n" + message + location.AsString();
30}
31
32const char* Exception::what() const noexcept
33{
34 return m_Message.c_str();
35}
36
38: Exception("Function not yet implemented")
39{
40}
41
42}
virtual const char * what() const noexcept override
Exception(const std::string &message)
Exception(const std::string &message)
Copyright (c) 2021 ARM Limited and Contributors.
std::string AsString() const