X-Git-Url: http://git.tdb.fi/?a=blobdiff_plain;f=source%2Fcore%2Ferror.cpp;fp=source%2Fcore%2Ferror.cpp;h=0000000000000000000000000000000000000000;hb=c13c5d2e330e4cee177c1fd8e0b6153c7e2503e4;hp=defed2f599d2ca879895c91b03031a8a829cd94e;hpb=55a79fbe96a87183fa4e11049eb161943636b1dd;p=libs%2Fcore.git diff --git a/source/core/error.cpp b/source/core/error.cpp deleted file mode 100644 index defed2f..0000000 --- a/source/core/error.cpp +++ /dev/null @@ -1,39 +0,0 @@ -/* $Id$ - -This file is part of libmspcore -Copyright © 2006-2007 Mikko Rasa, Mikkosoft Productions -Distributed under the LGPL -*/ -#include -#include "error.h" - -using namespace std; - -namespace Msp { - -Exception::Exception(const string &w_): - w(w_) -{ -#ifdef WITH_EXCEPTION_BACKTRACE - bt=Debug::Backtrace::create(); -#endif -} - -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<