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/Time.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'pokemod/Time.cpp') 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("hour"); m_hour = hour; } void Time::setMinute(const int minute) throw(BoundsException) { if (60 <= minute) - throw(BoundsException(className(), "minute")); + error("minute"); m_minute = minute; } -- cgit