diff options
| author | eyedav <88885346+eyedav@users.noreply.github.com> | 2023-03-15 16:38:55 +0100 |
|---|---|---|
| committer | eyedav <88885346+eyedav@users.noreply.github.com> | 2023-03-15 16:38:55 +0100 |
| commit | 29f7b5e27c833fe4fbd5b568dbfdc503f10811aa (patch) | |
| tree | e68fe9e7aa99301b4583577292135303571f2285 /eyeware-beam-sdk/API/cpp/include/eyeware/network_exception.h | |
| parent | e8cb127b3bab022a8b48b9935934d80f4dc00027 (diff) | |
Add the Eyeware Beam SDK dependency
Diffstat (limited to 'eyeware-beam-sdk/API/cpp/include/eyeware/network_exception.h')
| -rw-r--r-- | eyeware-beam-sdk/API/cpp/include/eyeware/network_exception.h | 33 |
1 files changed, 33 insertions, 0 deletions
diff --git a/eyeware-beam-sdk/API/cpp/include/eyeware/network_exception.h b/eyeware-beam-sdk/API/cpp/include/eyeware/network_exception.h new file mode 100644 index 0000000..37a33f3 --- /dev/null +++ b/eyeware-beam-sdk/API/cpp/include/eyeware/network_exception.h @@ -0,0 +1,33 @@ +/** + * Copyright and confidentiality notice + * + * This file is part of GazeSense SDK, which is proprietary and confidential + * information of Eyeware Tech SA. + * + * Copyright (C) 2021 Eyeware Tech SA + * + * All rights reserved + */ + +#ifndef EYEWARE_NETWORK_EXCEPTION_H_ +#define EYEWARE_NETWORK_EXCEPTION_H_ + +#include <exception> +#include <string> + +namespace eyeware { + +enum class NetworkError { TIMEOUT = 0, UNKNOWN_ERROR = 1 }; + +struct NetworkException : public std::exception { + public: + NetworkException(const std::string &error_msg) : m_error_msg{error_msg} {} + const char *what() const noexcept override { return m_error_msg.c_str(); } + + private: + std::string m_error_msg; +}; + +} // namespace eyeware + +#endif
\ No newline at end of file |
