ArmNN
 25.11
Loading...
Searching...
No Matches
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
 Exception (const Exception &other, const std::string &message, const CheckLocation &location)
 preserving previous exception context and adding local context information
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}

Referenced by Exception().

◆ 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}
std::string AsString() const

References CheckLocation::AsString().

◆ 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}

References CheckLocation::AsString(), and Exception().

Member Function Documentation

◆ what()

const char * what ( ) const
overridevirtualnoexcept

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