diff options
Diffstat (limited to 'pokemod/Time.cpp')
| -rw-r--r-- | pokemod/Time.cpp | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/pokemod/Time.cpp b/pokemod/Time.cpp index c308801c..ba9d3f46 100644 --- a/pokemod/Time.cpp +++ b/pokemod/Time.cpp @@ -94,14 +94,14 @@ void Time::setName(const QString& name) void Time::setHour(const int hour) throw(BoundsException) { if (24 <= hour) - throw(BoundsException(className(), "hour")); + error<BoundsException>("hour"); m_hour = hour; } void Time::setMinute(const int minute) throw(BoundsException) { if (60 <= minute) - throw(BoundsException(className(), "minute")); + error<BoundsException>("minute"); m_minute = minute; } |
