24.08
Exceptions.cpp
Go to the documentation of this file.
1
//
2
// Copyright © 2017 Arm Ltd. All rights reserved.
3
// SPDX-License-Identifier: MIT
4
//
5
#include <
armnn/Exceptions.hpp
>
6
7
#include <string>
8
9
namespace
armnn
10
{
11
12
Exception::Exception
(
const
std::string& message)
13
: m_Message{message}
14
{
15
}
16
17
Exception::Exception
(
const
std::string& message,
18
const
CheckLocation
& location)
19
: m_Message{message}
20
{
21
m_Message += location.AsString();
22
}
23
24
Exception::Exception
(
const
Exception
& other,
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
32
const
char
*
Exception::what
() const noexcept
33
{
34
return
m_Message.c_str();
35
}
36
37
UnimplementedException::UnimplementedException
()
38
:
Exception
(
"Function not yet implemented"
)
39
{
40
}
41
42
}
armnn::UnimplementedException::UnimplementedException
UnimplementedException()
Definition:
Exceptions.cpp:37
armnn::Exception::what
virtual const char * what() const noexcept override
Definition:
Exceptions.cpp:32
armnn::CheckLocation
Definition:
Exceptions.hpp:14
armnn::Exception
Base class for all ArmNN exceptions so that users can filter to just those.
Definition:
Exceptions.hpp:46
armnn::Exception::Exception
Exception(const std::string &message)
Definition:
Exceptions.cpp:12
Exceptions.hpp
armnn
Copyright (c) 2021 ARM Limited and Contributors.
Definition:
01_00_quick_start.dox:6
src
armnn
Exceptions.cpp
Generated on Wed Aug 28 2024 14:31:48 for Arm NN by
1.8.17