aboutsummaryrefslogtreecommitdiff
path: root/ufund-api/src/main/java/com/ufund/api/ufundapi/service/CupboardService.java
diff options
context:
space:
mode:
authorGunther6070 <haydenhartman10@yahoo.com>2025-03-25 08:21:01 -0400
committerGunther6070 <haydenhartman10@yahoo.com>2025-03-25 08:21:01 -0400
commitffbe2870d320c4127d32307f2646f39e2e284eec (patch)
treef9f46447c689c1667f04f17bfbf2e8d07ff0fcd0 /ufund-api/src/main/java/com/ufund/api/ufundapi/service/CupboardService.java
parentd31c1aec7f615646553a227c8e235d4ae2679c68 (diff)
parentc15aa3daab0cf9a640945d4e634d1327fb55d2db (diff)
downloadJellySolutions-ffbe2870d320c4127d32307f2646f39e2e284eec.tar.gz
JellySolutions-ffbe2870d320c4127d32307f2646f39e2e284eec.tar.bz2
JellySolutions-ffbe2870d320c4127d32307f2646f39e2e284eec.zip
Merge branch 'api-cleanup' of https://github.com/RIT-SWEN-261-02/team-project-2245-swen-261-02-2b into api-cleanup
Diffstat (limited to 'ufund-api/src/main/java/com/ufund/api/ufundapi/service/CupboardService.java')
-rw-r--r--ufund-api/src/main/java/com/ufund/api/ufundapi/service/CupboardService.java6
1 files changed, 3 insertions, 3 deletions
diff --git a/ufund-api/src/main/java/com/ufund/api/ufundapi/service/CupboardService.java b/ufund-api/src/main/java/com/ufund/api/ufundapi/service/CupboardService.java
index 8713882..91e3ba5 100644
--- a/ufund-api/src/main/java/com/ufund/api/ufundapi/service/CupboardService.java
+++ b/ufund-api/src/main/java/com/ufund/api/ufundapi/service/CupboardService.java
@@ -104,12 +104,12 @@ public class CupboardService {
*
* @param id The ID of the need to update
* @param checkoutAmount The amount to update the need by
- * @throws IOException
- * @throws IllegalAccessException
+ * @throws IOException If there is an error reading the file
+ * @throws IllegalAccessException If the user has insufficient permission
*/
public void checkoutNeed(int id, double checkoutAmount, String key) throws IOException, IllegalAccessException {
if (checkoutAmount <= 0) {
- throw new IllegalArgumentException("Amount must be greather than 0");
+ throw new IllegalArgumentException("Amount must be greater than 0");
}
authService.authenticate(key);
Need need = cupboardDAO.getNeed(id);