Skip to content

Commit 1abc101

Browse files
committed
feat: updated exception in lesson14 homework by Yemi
1 parent a17007a commit 1abc101

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
@@ -40,7 +40,7 @@ public void cancelOrder(String orderId) throws OrderNotFoundException {
4040

4141
public String checkOrderStatus(String orderId) throws OrderNotFoundException {
4242
Order order = orders.get(orderId);
43-
if (order == null) throw new OrderNotFoundException("Order with ID 1 not found");
43+
if (order == null) throw new OrderNotFoundException("Order with ID " + orderId + " not found");
4444
return "Order ID: "
4545
+ orderId
4646
+ ", Product: "

0 commit comments

Comments
 (0)