Skip to content

Commit bff48e2

Browse files
committed
fix
1 parent a7bb9c7 commit bff48e2

File tree

1 file changed

+1
-1
lines changed
  • lesson_14/exceptions/exceptions_app/src/main/java/com/codedifferently/lesson14/ecommerce

1 file changed

+1
-1
lines changed

lesson_14/exceptions/exceptions_app/src/main/java/com/codedifferently/lesson14/ecommerce/EcommerceSystem.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,7 @@ public void addProduct(String productId, String name) {
2020
public String placeOrder(String productId, int quantity) throws ProductNotFoundException {
2121
Product product = products.get(productId);
2222
if (product == null) {
23-
throw new ProductNotFoundException("Product with ID 1 not found ");
23+
throw new ProductNotFoundException("Product with ID 1 not found");
2424
}
2525
String orderId = UUID.randomUUID().toString();
2626
orders.put(orderId, new Order(orderId, product, quantity));

0 commit comments

Comments
 (0)