public void checkoutCart(Session user, int store, String address, String creditCard) { if (store < 0) { throw new ArgumentException("invalid store id"); } db.checkoutCart(user, store, address, creditCard); }