Class FridgeNotFoundException
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.FridgeNotFoundException
- All Implemented Interfaces:
Serializable
Exception thrown when a fridge is not found in the system.
- Author:
- Trym Hamer Gudvangen
- See Also:
-
Constructor Summary
ConstructorsConstructorDescriptionFridgeNotFoundException
(Long fridgeId) Constructs aFridgeNotFoundException
with the specified fridge ID.FridgeNotFoundException
(String fridgeName) This method constructs aFridgeNotFoundException
with the specified 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
-
FridgeNotFoundException
This method constructs aFridgeNotFoundException
with the specified fridge name.- Parameters:
fridgeName
- The name of the fridge that was not found, given as a String.
-
FridgeNotFoundException
Constructs aFridgeNotFoundException
with the specified fridge ID.- Parameters:
fridgeId
- The ID of the fridge that was not found, given as a Long object.
-