public void addTotalPolicy(int storeID, int minPrice, int session) { if (storeID < 0) { throw new ILLArgumentException("illegal store number"); } if (minPrice < 0) { throw new ILLArgumentException("illegal total value"); } db.addTotalPricePolicy(minPrice, storeID, session); }