eliminate ShipDescription.Constant class, use BitVector instead
[fleet.git] / src / edu / berkeley / fleet / api / Ship.java
index f5eafa4..0b7945d 100644 (file)
@@ -26,7 +26,7 @@ public abstract class Ship implements Iterable<Dock> {
 
     /** get a constant associated with a ship; returns null if none found */
     public BitVector getConstant(String constantName) {
-        return null;
+        throw new RuntimeException("unknown constant \""+constantName+"\" on ship " + this);
     }
 
     public String toString() {