Skip to content

Commit 373fadc

Browse files
committed
fix: makes code more readable and gets rid of extra code uneeded fr our specific application. lesson_14 - Joseph Caballero
1 parent 38daaf5 commit 373fadc

File tree

2 files changed

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

2 files changed

+5
-5
lines changed

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

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -11,15 +11,15 @@ public Order(String orderId, Product product, int quantity) {
1111
this.quantity = quantity;
1212
}
1313

14-
public String getOrderId() throws OrderNotFoundException {
14+
public String getOrderId(){
1515
return orderId;
1616
}
1717

18-
public Product getProduct() throws OrderNotFoundException {
18+
public Product getProduct() {
1919
return product;
2020
}
2121

22-
public int getQuantity() throws OrderNotFoundException {
22+
public int getQuantity() {
2323
return quantity;
2424
}
2525
}

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

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -9,11 +9,11 @@ public Product(String productId, String name) {
99
this.name = name;
1010
}
1111

12-
public String getProductId() throws ProductNotFoundException {
12+
public String getProductId() {
1313
return productId;
1414
}
1515

16-
public String getName() throws ProductNotFoundException {
16+
public String getName() {
1717
return name;
1818
}
1919
}

0 commit comments

Comments
 (0)