# HG changeset patch # User IBBoard # Date 1251311875 0 # Node ID 45a9452579a22961e2bac903f104d9cd0cd39b84 # Parent b045128474242ae5165b1e14b24b625c44327600 Fixes #50: Complete core loading of WarFoundry XML files * Add exceptions on invalid data - completes WarFoundry 0.1 loading needs diff -r b04512847424 -r 45a9452579a2 api/Factories/Xml/WarFoundryXmlRaceFactory.cs --- a/api/Factories/Xml/WarFoundryXmlRaceFactory.cs Mon Aug 24 21:24:44 2009 +0000 +++ b/api/Factories/Xml/WarFoundryXmlRaceFactory.cs Wed Aug 26 18:37:55 2009 +0000 @@ -224,7 +224,7 @@ } else { - //TODO: Warn about missing item + throw new InvalidFileException("Equipment item with ID '" + id + "' was required by " + type.Name + " but was not found"); } } @@ -253,7 +253,7 @@ } else { - // TODO: Warn on invalid data, but don't exception + throw new InvalidFileException("Unit type " + type.Name + " tried to contain undefined unit with ID "+id); } } }