X-Git-Url: http://git.tdb.fi/?p=libs%2Fcore.git;a=blobdiff_plain;f=source%2Fcore%2Fexcept.cpp;fp=source%2Fcore%2Fexcept.cpp;h=0000000000000000000000000000000000000000;hp=41fe3e8c597ecf5157af5f1fda2169ebce3b6545;hb=da2572104375f25b16d392dd14ea208a6f7e57d7;hpb=e14321c38b34ec1cc5641b267f031693a8f7bc27 diff --git a/source/core/except.cpp b/source/core/except.cpp deleted file mode 100644 index 41fe3e8..0000000 --- a/source/core/except.cpp +++ /dev/null @@ -1,55 +0,0 @@ -#include -#include -#ifdef WIN32 -#include -#endif -#include "except.h" - -using namespace std; - -namespace Msp { - -Exception::Exception(const string &w): - wot(w) -{ -#ifdef WITH_EXCEPTION_BACKTRACE - bt = Debug::Backtrace::create(); -#endif -} - -Exception &Exception::at(const std::string &w) throw() -{ - wer = w; - wot = wer+": "+wot; - return *this; -} - - -SystemError::SystemError(const string &w_, int e): - Exception(build_what(w_, e)), - err(e) -{ } - -string SystemError::build_what(const string &w, int e) -{ - ostringstream buf; - buf<