summaryrefslogtreecommitdiffstats
path: root/pokemod/CoinListObject.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'pokemod/CoinListObject.cpp')
-rw-r--r--pokemod/CoinListObject.cpp6
1 files changed, 3 insertions, 3 deletions
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<BoundsException>("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<BoundsException>("object");
m_object = object;
}
void CoinListObject::setAmount(const int amount) throw(BoundsException)
{
if (!amount || ((Species == m_type) && (1 < amount)))
- throw(BoundsException(className(), "amount"));
+ error<BoundsException>("amount");
m_amount = amount;
}