diff options
| author | Stefan Boberg <[email protected]> | 2021-05-13 17:31:21 +0200 |
|---|---|---|
| committer | Stefan Boberg <[email protected]> | 2021-05-13 17:31:21 +0200 |
| commit | 690f6829cee0eb8d705b7c2436ccb0fda4b531ec (patch) | |
| tree | ef76d71b40213ae100406bb04b73fffab8c58172 /zencore/include | |
| parent | SharedBuffer::MakeView now validates range against outer (diff) | |
| download | zen-690f6829cee0eb8d705b7c2436ccb0fda4b531ec.tar.xz zen-690f6829cee0eb8d705b7c2436ccb0fda4b531ec.zip | |
Added string_view variant of WindowsException constructor
Diffstat (limited to 'zencore/include')
| -rw-r--r-- | zencore/include/zencore/except.h | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/zencore/include/zencore/except.h b/zencore/include/zencore/except.h index 07c4833ff..8f5f50e86 100644 --- a/zencore/include/zencore/except.h +++ b/zencore/include/zencore/except.h @@ -23,6 +23,12 @@ public: m_Message = Message; } + WindowsException(HRESULT hRes, std::string_view Message) + { + m_hResult = hRes; + m_Message = Message; + } + WindowsException(HRESULT hRes, const char* Message, const char* Detail) { m_hResult = hRes; |