Skip to content

Commit d82280c

Browse files
committed
Spot: Lesson 14 Ecommerce System Exceptions by Dwight Blue
1 parent 3ed51f7 commit d82280c

File tree

3 files changed

+7
-7
lines changed

3 files changed

+7
-7
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
@@ -26,7 +26,7 @@ public String placeOrder(String productId, int quantity) throws ProductNotFoundE
2626
orders.put(orderId, new Order(orderId, product, quantity));
2727
return orderId;
2828
}
29-
29+
3030
public void cancelOrder(String orderId) {
3131
orders.remove(orderId);
3232
}

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

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@
66
package com.codedifferently.lesson14.ecommerce;
77

88
class OrderNotFoundException extends Exception {
9-
public OrderNotFoundException(String message) {
10-
super(message);
11-
}
9+
public OrderNotFoundException(String message) {
10+
super(message);
11+
}
1212
}

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

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@
66
package com.codedifferently.lesson14.ecommerce;
77

88
class ProductNotFoundException extends Exception {
9-
public ProductNotFoundException(String message) {
10-
super(message);
11-
}
9+
public ProductNotFoundException(String message) {
10+
super(message);
11+
}
1212
}

0 commit comments

Comments
 (0)