3 #include <msp/strings/lexicalcast.h>
8 #include "systemerror.h"
14 system_error::system_error(const string &w, int c):
15 runtime_error(w+": "+get_message(c)),
19 string system_error::get_message(int c)
26 if(FormatMessageA(FORMAT_MESSAGE_FROM_SYSTEM, 0, c, 0, msg, sizeof(msg), 0))
29 return lexical_cast(c, Fmt().hex());