]> git.tdb.fi Git - libs/core.git/blobdiff - source/core/error.cpp
Rename error.* to except.*
[libs/core.git] / source / core / error.cpp
diff --git a/source/core/error.cpp b/source/core/error.cpp
deleted file mode 100644 (file)
index defed2f..0000000
+++ /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 <sstream>
-#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<<w<<": ";
-#ifdef WIN32
-       buf<<e;
-#else
-       buf<<strerror(e);
-#endif
-       return buf.str();
-}
-
-} // namespace Msp