We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent dea4134 commit e22ce0fCopy full SHA for e22ce0f
lesson_14/exceptions/exceptions_app/src/main/java/com/codedifferently/lesson14/Lesson14.java
@@ -5,11 +5,11 @@ public class Lesson14 {
5
public static void main(String[] args) {
6
// System.out.println("Hello World");
7
try {
8
- ecommerceSystem.placeOrder("1", 1);
+ String orderId = ecommerceSystem.placeOrder("1", 1);
9
} catch (ProductNotFoundException e) {
10
- System.out.println("Product not found.");
+ System.out.println("Product with ID " + orderId + " not found.");
11
} catch (OrderNotFoundException e){
12
- System.out.println("Order not found.");
+ System.out.println("Order with ID " + orderId + " not found.");
13
}
14
15
0 commit comments