aboutsummaryrefslogtreecommitdiff
path: root/include/armnn/Exceptions.hpp
diff options
context:
space:
mode:
Diffstat (limited to 'include/armnn/Exceptions.hpp')
-rw-r--r--include/armnn/Exceptions.hpp9
1 files changed, 8 insertions, 1 deletions
diff --git a/include/armnn/Exceptions.hpp b/include/armnn/Exceptions.hpp
index e21e974fc7..066f59f792 100644
--- a/include/armnn/Exceptions.hpp
+++ b/include/armnn/Exceptions.hpp
@@ -64,12 +64,19 @@ private:
std::string m_Message;
};
-class ClRuntimeUnavailableException : public Exception
+/// Class for non-fatal exceptions raised while initialising a backend
+class BackendUnavailableException : public Exception
{
public:
using Exception::Exception;
};
+class ClRuntimeUnavailableException : public BackendUnavailableException
+{
+public:
+ using BackendUnavailableException::BackendUnavailableException;
+};
+
class InvalidArgumentException : public Exception
{
public: