Both methods throw illegal argument exception. Create a custom exception for either (or both) method(s).
Where to find
Iteration 3, Inventory package, class Shop
incrementSales() method:
public void incrementSales(double increment) {
if (increment < 0) throw new IllegalArgumentException();
else this.sales += increment;
}
incrementCosts() method:
//Increments costs by given amount
public void incrementCosts(double increment) {
if (increment < 0) throw new IllegalArgumentException();
else this.costs += increment;
}
What to do
Create a custom exception with a descriptive name, such as NegativeSalesException/NegativeCostsException.