Skip to content

Commit

Permalink
feat: updated exception in lesson14 homework by Yemi
Browse files Browse the repository at this point in the history
  • Loading branch information
jimoye244 committed Oct 27, 2024
1 parent a17007a commit 1abc101
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -40,7 +40,7 @@ public void cancelOrder(String orderId) throws OrderNotFoundException {

public String checkOrderStatus(String orderId) throws OrderNotFoundException {
Order order = orders.get(orderId);
if (order == null) throw new OrderNotFoundException("Order with ID 1 not found");
if (order == null) throw new OrderNotFoundException("Order with ID " + orderId + " not found");
return "Order ID: "
+ orderId
+ ", Product: "
Expand Down

0 comments on commit 1abc101

Please sign in to comment.