omw  0.2.0
exception.h
1 /*
2 author Oliver Blaser
3 date 13.08.2021
4 copyright MIT - Copyright (c) 2021 Oliver Blaser
5 */
6 
7 #ifndef IG_OMW_WINDOWS_EXCEPTION_H
8 #define IG_OMW_WINDOWS_EXCEPTION_H
9 
10 #include "../../omw/defs.h"
11 #if OMW_PLAT_WIN
12 
13 #include <stdexcept>
14 #include <string>
15 
16 namespace omw
17 {
18  namespace windows
19  {
21  {
22  public:
23  envVar_not_found() = delete;
24  explicit envVar_not_found(const std::string& message) : std::runtime_error(message) {}
25  explicit envVar_not_found(const char* message) : std::runtime_error(message) {}
26  virtual ~envVar_not_found() {}
27  };
28 
30  {
31  public:
32  invalid_unicode() = delete;
33  explicit invalid_unicode(const std::string& message) : std::runtime_error(message) {}
34  explicit invalid_unicode(const char* message) : std::runtime_error(message) {}
35  virtual ~invalid_unicode() {}
36  };
37 
39  {
40  public:
41  resource_not_found() = delete;
42  explicit resource_not_found(const std::string& message) : std::runtime_error(message) {}
43  explicit resource_not_found(const char* message) : std::runtime_error(message) {}
44  virtual ~resource_not_found() {}
45  };
46  }
47 }
48 
49 #endif // OMW_PLAT_WIN
50 #endif // IG_OMW_WINDOWS_EXCEPTION_H
std::string
C++ standard string. See std::basic_string.
Definition: linkToStd.dox:19
omw::windows::envVar_not_found
An exception, indicating that the specified environment variable could not be found.
Definition: exception.h:21
omw::windows::resource_not_found
An exception, indicating that the specified resource could not be found.
Definition: exception.h:39
omw::windows::invalid_unicode
An exception, indicating the presence of an invalid unicode codepoint.
Definition: exception.h:30
std::runtime_error
An exception of the C++ std.
Definition: linkToStd.dox:46
omw
Main namespace.