Changed exception type to be correctly catched by DeckSerializer

This commit is contained in:
Maxmtg
2013-03-01 18:26:16 +00:00
parent 1fcb929ea7
commit 0d0ea30e0e

View File

@@ -19,6 +19,7 @@ package forge.deck;
import java.util.List;
import java.util.Map.Entry;
import java.util.NoSuchElementException;
import forge.Card;
@@ -139,7 +140,7 @@ public class CardPool extends ItemPool<CardPrinted> {
if ( cp != null)
this.add(cp);
else
throw new RuntimeException(String.format("Card %s is not supported by Forge, as it's neither a known common card nor one of casual variants' card.", cardName));
throw new NoSuchElementException(String.format("Card %s is not supported by Forge, as it's neither a known common card nor one of casual variants' card.", cardName));
}
/**