add 'location' information to a couple exceptions that should have it
[reactos.git] / reactos / tools / rbuild / exception.cpp
index 798773a..b897fdf 100644 (file)
@@ -93,17 +93,23 @@ XMLSyntaxErrorException::XMLSyntaxErrorException ( const string& location,
 }\r
 \r
 \r
-RequiredAttributeNotFoundException::RequiredAttributeNotFoundException ( const string& attributeName,\r
-                                                                         const string& elementName )\r
-       : InvalidBuildFileException ( "Required attribute '%s' not found on '%s'.",\r
+RequiredAttributeNotFoundException::RequiredAttributeNotFoundException (\r
+       const string& location,\r
+       const string& attributeName,\r
+       const string& elementName )\r
+       : InvalidBuildFileException ( location,\r
+                                     "Required attribute '%s' not found on '%s'.",\r
                                      attributeName.c_str (),\r
                                      elementName.c_str ())\r
 {\r
 }\r
 \r
-InvalidAttributeValueException::InvalidAttributeValueException ( const string& name,\r
-                                                                    const string& value )\r
-       : InvalidBuildFileException ( "Attribute '%s' has an invalid value '%s'.",\r
+InvalidAttributeValueException::InvalidAttributeValueException (\r
+       const string& location,\r
+       const string& name,\r
+       const string& value )\r
+       : InvalidBuildFileException ( location,\r
+                                     "Attribute '%s' has an invalid value '%s'.",\r
                                      name.c_str (),\r
                                      value.c_str () )\r
 {\r
@@ -119,12 +125,14 @@ BackendNameConflictException::BackendNameConflictException ( const string& name
 \r
 UnknownBackendException::UnknownBackendException ( const string& name )\r
        : Exception ( "Unknown Backend requested: '%s'",\r
-                    name.c_str() )\r
+                     name.c_str() )\r
 {\r
 }\r
 \r
-UnknownModuleTypeException::UnknownModuleTypeException ( const string& moduletype )\r
-       : Exception ( "module type requested: '%s'",\r
-                     moduletype.c_str() )\r
+UnknownModuleTypeException::UnknownModuleTypeException ( const string& location,\r
+                                                         const string& moduletype )\r
+       : InvalidBuildFileException ( location,\r
+                                     "module type requested: '%s'",\r
+                                     moduletype.c_str() )\r
 {\r
 }\r