Class ItemNotFoundException

All Implemented Interfaces:
Serializable

public class ItemNotFoundException extends NotFoundException
This exception is thrown when an item is not found in the database. It extends the NotFoundException class.
Author:
Brage Halvorsen Kvamme, Trym Hamer Gudvangen
See Also:
  • Constructor Details

    • ItemNotFoundException

      public ItemNotFoundException(String itemName)
      This method constructs a new ItemNotFoundException with the given itemName.
      Parameters:
      itemName - The name of the item that was not found, given as a String.
    • ItemNotFoundException

      public ItemNotFoundException(Long itemId)
      This method constructs a new ItemNotFoundException with the given itemId.
      Parameters:
      itemId - The id of the item that was not found, given as a Long Object.