25 #ifndef FSW_WINDOWS_ERROR_MESSAGE_H
26 # define FSW_WINDOWS_ERROR_MESSAGE_H
89 operator std::wstring()
const;
92 mutable bool initialized =
false;
93 mutable std::wstring msg;
static win_error_message current()
Constructs an instance of this class using the last error code of the calling thread, returned by a call to GetLastError().
Main namespace of libfswatch.
Definition: event.cpp:23
std::wstring get_message() const
Gets the system-defined error message.
win_error_message()
Constructs an error message using the last error code of the calling thread, retrieved with a call to...
DWORD get_error_code() const
Gets the error code.
Helper class to get the system-defined error message for a Microsoft Windows' error code...
Definition: win_error_message.hpp:41