Mercurial > repos > snowblizz-super-API-ideas
changeset 128:45a9452579a2
Fixes #50: Complete core loading of WarFoundry XML files
* Add exceptions on invalid data - completes WarFoundry 0.1 loading needs
author | IBBoard <dev@ibboard.co.uk> |
---|---|
date | Wed, 26 Aug 2009 18:37:55 +0000 |
parents | b04512847424 |
children | 52cacdbcb001 |
files | api/Factories/Xml/WarFoundryXmlRaceFactory.cs |
diffstat | 1 files changed, 2 insertions(+), 2 deletions(-) [+] |
line wrap: on
line diff
--- 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); } } }