Class FridgeNotFoundException

All Implemented Interfaces:
Serializable

public class FridgeNotFoundException extends NotFoundException
Exception thrown when a fridge is not found in the system.
Author:
Trym Hamer Gudvangen
See Also:
  • Constructor Details

    • FridgeNotFoundException

      public FridgeNotFoundException(String fridgeName)
      This method constructs a FridgeNotFoundException with the specified fridge name.
      Parameters:
      fridgeName - The name of the fridge that was not found, given as a String.
    • FridgeNotFoundException

      public FridgeNotFoundException(Long fridgeId)
      Constructs a FridgeNotFoundException with the specified fridge ID.
      Parameters:
      fridgeId - The ID of the fridge that was not found, given as a Long object.