Facility for generating exceptions Chusov::Exceptions namespace based on the Win32 error codes. More...
Classes | |
struct | get_win32_error_description |
A helper structure describing a type of function objects calling the Windows FormatMessage function to generate descriptions corresponding to the specified Windows error codes. More... | |
Functions | |
template<bool fProcessSuccessCodeAsUnknownError = true> | |
void | ChsvExceptionByWin32Code (DWORD nCode, va_list ap, const wchar_t *pszDescription) |
Creates an instance of the Chusov::Exceptions::ChsvCodeExceptionTempl class and throws it as an exception. The instantiation of the Chusov::Exceptions::ChsvCodeExceptionTempl class template is chosen depending on the result of translation of the specified Windows error code to the corresponding chsvlib error code, which is performed by the Chusov::Win32ErrorToChsvError function. More... | |
template<bool fProcessSuccessCodeAsUnknownError = true> | |
void | ChsvExceptionByWin32Code (DWORD nCode, const wchar_t *pszDescription,...) |
Creates an instance of the Chusov::Exceptions::ChsvCodeExceptionTempl class and throws it as an exception. The instantiation of the Chusov::Exceptions::ChsvCodeExceptionTempl class template is chosen depending on the result of translation of the specified Windows error code to the corresponding chsvlib error code, which is performed by the Chusov::Win32ErrorToChsvError function. More... | |
template<bool fProcessSuccessCodeAsUnknownError = true> | |
void | ChsvExceptionByWin32Code (DWORD nCode) |
Creates an instance of the Chusov::Exceptions::ChsvCodeExceptionTempl class and throws it as an exception. The instantiation of the Chusov::Exceptions::ChsvCodeExceptionTempl class template is chosen depending on the result of a translation of the Windows error code to the corresponding chsvlib error code. More... | |
template<bool fProcessSuccessCodeAsUnknownError = true> | |
void | ChsvExceptionByWin32Code () |
Creates an instance of the Chusov::Exceptions::ChsvCodeExceptionTempl class and throws it as an exception. The instantiation of the Chusov::Exceptions::ChsvCodeExceptionTempl class template is chosen depending on the result of a translation of the Windows error code retrieved by an internal call to the Windows GetLastError function. More... | |
Facility for generating exceptions Chusov::Exceptions namespace based on the Win32 error codes.