From fe31331e2807634ae659e372358bac5781de9130 Mon Sep 17 00:00:00 2001 From: Ben Boeckel Date: Sat, 19 Apr 2008 18:12:17 +0000 Subject: [FIX] IndexException is more explicit [FIX] Added SizeException for image validation [FIX] QPixmaps are now verified [FIX] Classes now use error and warning rather than throwing [FIX] Deleted Object.cpp git-svn-id: https://pokegen.svn.sourceforge.net/svnroot/pokegen/trunk@100 6ecfd1a5-f3ed-3746-8530-beee90d26b22 --- pokemod/CoinListObject.cpp | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'pokemod/CoinListObject.cpp') diff --git a/pokemod/CoinListObject.cpp b/pokemod/CoinListObject.cpp index cc110a8e..bdc170fa 100644 --- a/pokemod/CoinListObject.cpp +++ b/pokemod/CoinListObject.cpp @@ -102,7 +102,7 @@ QDomElement CoinListObject::save() const void CoinListObject::setType(const int type) throw(BoundsException) { if (End <= type) - throw(BoundsException(className(), "type")); + error("type"); m_type = type; m_object = INT_MAX; } @@ -110,14 +110,14 @@ void CoinListObject::setType(const int type) throw(BoundsException) void CoinListObject::setObject(const int object) throw(BoundsException) { if (((Item == m_type) && (pokemod()->itemIndex(object) == INT_MAX)) || ((Species == m_type) && (pokemod()->speciesIndex(object) == INT_MAX))) - throw(BoundsException(className(), "object")); + error("object"); m_object = object; } void CoinListObject::setAmount(const int amount) throw(BoundsException) { if (!amount || ((Species == m_type) && (1 < amount))) - throw(BoundsException(className(), "amount")); + error("amount"); m_amount = amount; } -- cgit