Closed walbourn closed 3 years ago
The ctor for std::exception that takes a 'what' string is a MSVC extension. This PR updates the code to use derived classes for improved portability.
std::exception
std::invalid_arguments
std::system_error
std::logic_error
std::out_of_range
std::runtime_error
The ctor for
std::exception
that takes a 'what' string is a MSVC extension. This PR updates the code to use derived classes for improved portability.std::invalid_arguments
for E_INVALIDARG-like exceptionsstd::system_error
for Win32 APIs that report via GetLastError()std::logic_error
for usage problems like missing proper Begin()/End()std::out_of_range
in a few specific placesstd::runtime_error
otherwise