Class FridgeMemberNotFoundException
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.FridgeMemberNotFoundException
- All Implemented Interfaces:
Serializable
An exception to be thrown when a fridge member is not found.
- Author:
- Trym Hamer Gudvangen
- See Also:
-
Constructor Summary
ConstructorsConstructorDescriptionFridgeMemberNotFoundException
(Long fridgeMemberId) This method constructs a new FridgeMemberNotFoundException with the given fridge member ID that was not found.FridgeMemberNotFoundException
(String fridgeMemberName) This method constructs a FridgeMemberNotFoundException with the specified member username. -
Method Summary
Methods inherited from class java.lang.Throwable
addSuppressed, fillInStackTrace, getCause, getLocalizedMessage, getMessage, getStackTrace, getSuppressed, initCause, printStackTrace, printStackTrace, printStackTrace, setStackTrace, toString
-
Constructor Details
-
FridgeMemberNotFoundException
This method constructs a FridgeMemberNotFoundException with the specified member username.- Parameters:
fridgeMemberName
- the name of the fridge that was not found
-
FridgeMemberNotFoundException
This method constructs a new FridgeMemberNotFoundException with the given fridge member ID that was not found.- Parameters:
fridgeMemberId
- The ID of the fridge member that was not found, given as a Long object.
-