diff options
Diffstat (limited to 'um/service/test/windows_error.cpp')
-rw-r--r-- | um/service/test/windows_error.cpp | 6 |
1 files changed, 2 insertions, 4 deletions
diff --git a/um/service/test/windows_error.cpp b/um/service/test/windows_error.cpp index 5785e99..1334620 100644 --- a/um/service/test/windows_error.cpp +++ b/um/service/test/windows_error.cpp @@ -9,16 +9,14 @@ #include <exception> #include <iostream> -#include <system_error> int main() { try { - throw std::system_error( + throw service::windows_error::make( ERROR_FILE_NOT_FOUND, - service::WindowsErrorCategory::get(), - LIBSERVICE_ERROR_PREFIX); + __FILE__, __LINE__, __FUNCTION__); } catch (const std::exception& e) { |