Class FridgeItemsNotFoundException
java.lang.Object
java.lang.Throwable
java.lang.Exception
java.lang.RuntimeException
edu.ntnu.idatt2106_2023_06.backend.exception.not_found.NotFoundException
edu.ntnu.idatt2106_2023_06.backend.exception.not_found.FridgeItemsNotFoundException
- All Implemented Interfaces:
Serializable
Exception thrown when a fridge's items cannot be found.
- Author:
- Leon Egeberg Hesthaug, Trym Hamer Gudvangen
- See Also:
-
Constructor Summary
ConstructorsConstructorDescriptionFridgeItemsNotFoundException
(Long fridgeId) This method constructs a new FridgeItemsNotFoundException with the given fridge ID.FridgeItemsNotFoundException
(String fridgeName) This method constructs a new FridgeItemsNotFoundException with the given fridge name. -
Method Summary
Methods inherited from class java.lang.Throwable
addSuppressed, fillInStackTrace, getCause, getLocalizedMessage, getMessage, getStackTrace, getSuppressed, initCause, printStackTrace, printStackTrace, printStackTrace, setStackTrace, toString
-
Constructor Details
-
FridgeItemsNotFoundException
This method constructs a new FridgeItemsNotFoundException with the given fridge name.- Parameters:
fridgeName
- The name of the fridge, given as a String
-
FridgeItemsNotFoundException
This method constructs a new FridgeItemsNotFoundException with the given fridge ID.- Parameters:
fridgeId
- The ID of the fridge, given as a Long
-