(no commit message)
authorErik Brakkee <erik@brakkee.org>
Sat, 25 Mar 2006 19:11:00 +0000 (19:11 +0000)
committerErik Brakkee <erik@brakkee.org>
Sat, 25 Mar 2006 19:11:00 +0000 (19:11 +0000)
crawler/kiss/src/org/wamblee/crawler/kiss/guide/Time.java

index 2a15073b7b8ae034b40fff83b9fff31969ea6f9f..2d05bac10928569be7063501337c2ff354af5c22 100644 (file)
@@ -126,7 +126,7 @@ public class Time implements Comparable {
      */
     public int compareTo(Object aObject) {
         if (!(aObject instanceof Time)) {
-            throw new RuntimeException("object not an instance of Time");
+            throw new IllegalArgumentException("object not an instance of Time");
         }
         Time time = (Time) aObject;
         return new Float(asFloat()).compareTo(new Float(time.asFloat()));