summaryrefslogtreecommitdiffstats
path: root/pokemod/SpeciesMove.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'pokemod/SpeciesMove.cpp')
-rw-r--r--pokemod/SpeciesMove.cpp6
1 files changed, 3 insertions, 3 deletions
diff --git a/pokemod/SpeciesMove.cpp b/pokemod/SpeciesMove.cpp
index 287474eb..65d952e5 100644
--- a/pokemod/SpeciesMove.cpp
+++ b/pokemod/SpeciesMove.cpp
@@ -89,21 +89,21 @@ QDomElement SpeciesMove::save() const
void SpeciesMove::setMove(const int move) throw(BoundsException)
{
if (pokemod()->moveIndex(move) == INT_MAX)
- throw(BoundsException(className(), "move"));
+ error<BoundsException>("move");
m_move = move;
}
void SpeciesMove::setLevel(const int level) throw(BoundsException)
{
if (pokemod()->rules()->maxLevel() <= level)
- throw(BoundsException(className(), "level"));
+ error<BoundsException>("level");
m_level = level;
}
void SpeciesMove::setWild(const int wild) throw(BoundsException)
{
if (pokemod()->rules()->maxLevel() <= wild)
- throw(BoundsException(className(), "wild"));
+ error<BoundsException>("wild");
m_wild = wild;
}