3 This file is part of libmspcore
4 Copyright © 2006-2007 Mikko Rasa, Mikkosoft Productions
5 Distributed under the LGPL
19 Exception::Exception(const string &w_):
22 #ifdef WITH_EXCEPTION_BACKTRACE
23 bt=Debug::Backtrace::create();
27 SystemError::SystemError(const string &w_, int e):
28 Exception(build_what(w_, e)),
32 KeyError::KeyError(const string &w_, const string &k):
33 Exception(w_+" ("+k+")"),
37 string SystemError::build_what(const string &w, int e)
43 if(FormatMessage(FORMAT_MESSAGE_FROM_SYSTEM, 0, e, 0, msg, sizeof(msg), 0))