ArmNN
 24.02
Exception Class Reference

Base class for all ArmNN exceptions so that users can filter to just those. More...

#include <Exceptions.hpp>

Inheritance diagram for Exception:
[legend]
Collaboration diagram for Exception:
[legend]

Public Member Functions

 Exception (const std::string &message)
 
 Exception (const std::string &message, const CheckLocation &location)
 exception with context More...
 
 Exception (const Exception &other, const std::string &message, const CheckLocation &location)
 preserving previous exception context and adding local context information More...
 
virtual const char * what () const noexcept override
 

Detailed Description

Base class for all ArmNN exceptions so that users can filter to just those.

Examples
CustomMemoryAllocatorSample.cpp.

Definition at line 46 of file Exceptions.hpp.

Constructor & Destructor Documentation

◆ Exception() [1/3]

Exception ( const std::string &  message)
explicit

Definition at line 12 of file Exceptions.cpp.

13 : m_Message{message}
14 {
15 }

◆ Exception() [2/3]

Exception ( const std::string &  message,
const CheckLocation location 
)
explicit

exception with context

Definition at line 17 of file Exceptions.cpp.

19 : m_Message{message}
20 {
21  m_Message += location.AsString();
22 }

◆ Exception() [3/3]

Exception ( const Exception other,
const std::string &  message,
const CheckLocation location 
)
explicit

preserving previous exception context and adding local context information

Definition at line 24 of file Exceptions.cpp.

27 : m_Message{other.m_Message}
28 {
29  m_Message += "\n" + message + location.AsString();
30 }

Member Function Documentation

◆ what()


The documentation for this class was generated from the following files: