aboutsummaryrefslogtreecommitdiff
path: root/ufund-api/src/main/java/com/ufund/api/ufundapi/service/CupboardService.java
diff options
context:
space:
mode:
authorsowgro <tpoke.ferrari@gmail.com>2025-03-25 00:03:45 -0400
committersowgro <tpoke.ferrari@gmail.com>2025-03-25 00:03:45 -0400
commitc15aa3daab0cf9a640945d4e634d1327fb55d2db (patch)
tree33b4331ce63890104dff5aa97152ac3f87386492 /ufund-api/src/main/java/com/ufund/api/ufundapi/service/CupboardService.java
parenta8175ba69669fddadfbe143e11972cc21821ed5f (diff)
downloadJellySolutions-c15aa3daab0cf9a640945d4e634d1327fb55d2db.tar.gz
JellySolutions-c15aa3daab0cf9a640945d4e634d1327fb55d2db.tar.bz2
JellySolutions-c15aa3daab0cf9a640945d4e634d1327fb55d2db.zip
Greatly improve logging and other backend clean up
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);