* Run build tools after parsing build files
[reactos.git] / reactos / tools / rbuild / exception.cpp
index 3927e2d..47e0d32 100644 (file)
@@ -33,6 +33,12 @@ void Exception::SetMessage ( const char* message,
 }\r
 \r
 \r
+OutOfMemoryException::OutOfMemoryException ()\r
+       : Exception ( "Out of memory" )\r
+{\r
+}\r
+\r
+\r
 InvalidOperationException::InvalidOperationException ( const char* filename,\r
                                                           const int linenumber )\r
 {\r
@@ -147,6 +153,7 @@ UnknownBackendException::UnknownBackendException ( const string& name )
 {\r
 }\r
 \r
+\r
 UnknownModuleTypeException::UnknownModuleTypeException ( const string& location,\r
                                                          int moduletype )\r
        : InvalidBuildFileException ( location,\r
@@ -154,3 +161,14 @@ UnknownModuleTypeException::UnknownModuleTypeException ( const string& location,
                                      moduletype )\r
 {\r
 }\r
+\r
+\r
+InvocationFailedException::InvocationFailedException ( const std::string& command,\r
+                                                       int exitcode )\r
+       : Exception ( "Failed to execute '%s' (exit code %d)",\r
+                     command.c_str (),\r
+                     exitcode )\r
+{\r
+       Command = command;\r
+       ExitCode = exitcode;\r
+}\r