Base class for all ArmNN exceptions so that users can filter to just those.
| 44 | |
| 45 | /// Base class for all ArmNN exceptions so that users can filter to just those. |
| 46 | class Exception : public std::exception |
| 47 | { |
| 48 | public: |
| 49 | explicit Exception(const std::string& message); |
| 50 | |
| 51 | /// exception with context |
| 52 | explicit Exception(const std::string& message, |
| 53 | const CheckLocation& location); |
| 54 | |
| 55 | /// preserving previous exception context |
| 56 | /// and adding local context information |
| 57 | explicit Exception(const Exception& other, |
| 58 | const std::string& message, |
| 59 | const CheckLocation& location); |
| 60 | |
| 61 | virtual const char* what() const noexcept override; |
| 62 | |
| 63 | private: |
| 64 | std::string m_Message; |
| 65 | }; |
| 66 | |
| 67 | /// Class for non-fatal exceptions raised while initialising a backend |
| 68 | class BackendUnavailableException : public Exception |
no outgoing calls