3 This file is part of libmspcore
4 Copyright © 2006-2008 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 Exception &Exception::at(const std::string &w) throw()
35 SystemError::SystemError(const string &w_, int e):
36 Exception(build_what(w_, e)),
40 string SystemError::build_what(const string &w, int e)
46 if(FormatMessageA(FORMAT_MESSAGE_FROM_SYSTEM, 0, e, 0, msg, sizeof(msg), 0))
57 KeyError::KeyError(const string &w_, const string &k):
58 Exception(w_+" ("+k+")"),