diff options
| author | Stefan Boberg <[email protected]> | 2021-09-17 23:07:45 +0200 |
|---|---|---|
| committer | Stefan Boberg <[email protected]> | 2021-09-17 23:07:45 +0200 |
| commit | a6244f914633a4245fc71a987cb42fce0b7d8671 (patch) | |
| tree | 70cac0bafe9c4ce7a90d894659eb73a53b3ed865 /zencore/include | |
| parent | Don't sweep instance table in read-only mode (diff) | |
| download | zen-a6244f914633a4245fc71a987cb42fce0b7d8671.tar.xz zen-a6244f914633a4245fc71a987cb42fce0b7d8671.zip | |
Added ThrowSystemError() helper
Diffstat (limited to 'zencore/include')
| -rw-r--r-- | zencore/include/zencore/except.h | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/zencore/include/zencore/except.h b/zencore/include/zencore/except.h index 3bffbd3bb..5cfefb1e2 100644 --- a/zencore/include/zencore/except.h +++ b/zencore/include/zencore/except.h @@ -24,6 +24,8 @@ ZENCORE_API void ThrowLastError [[noreturn]] (std::string_view Message); ZENCORE_API void ThrowLastError [[noreturn]] (std::string_view Message, const std::source_location& Location); #endif +ZENCORE_API void ThrowSystemError [[noreturn]] (uint32_t ErrorCode, std::string_view Message); + ZENCORE_API std::string GetLastErrorAsString(); ZENCORE_API std::string GetWindowsErrorAsString(uint32_t Win32ErrorCode); |