diff options
Diffstat (limited to 'include/armnn/Exceptions.hpp')
-rw-r--r-- | include/armnn/Exceptions.hpp | 10 |
1 files changed, 10 insertions, 0 deletions
diff --git a/include/armnn/Exceptions.hpp b/include/armnn/Exceptions.hpp index 89b6f2cfbb..29d874cd05 100644 --- a/include/armnn/Exceptions.hpp +++ b/include/armnn/Exceptions.hpp @@ -48,6 +48,16 @@ class Exception : public std::exception public: explicit Exception(const std::string& message); + // exception with context + explicit Exception(const std::string& message, + const CheckLocation& location); + + // preserving previous exception context + // and adding local context information + explicit Exception(const Exception& other, + const std::string& message, + const CheckLocation& location); + virtual const char* what() const noexcept override; private: |