--- a
+++ b/trunk/MMix/MMix.Machine/Exception.cpp
@@ -0,0 +1,9 @@
+#include <MMix.Machine/Exception.hpp>
+
+namespace MMix { namespace Machine {
+
+Exception::Exception(const String& message_, const String& content_, const String& fileName_, const Position& position_): 
+    std::runtime_error(message_ + " in file '" + fileName_ + "' at line " + IntToString(position_.line) + ":\n" +
+        GetErrorLines(content_, position_)) {}
+
+} } // namespace MMix::Machine