Class ItemNotFoundException

All Implemented Interfaces:
Serializable

public class ItemNotFoundException extends InvalidDataException
This exception is thrown when trying to load an item from the database that does not exist.
Version:
2.0
Author:
Nicklas
See Also:
  • Field Details

  • Constructor Details

    • ItemNotFoundException

      public ItemNotFoundException(String what)
      Creates a new ItemNotFoundException. The error message produced will look like: Item not found: User[ID=1]
      Parameters:
      what - A description of what was not found, for example: User[ID=1]
    • ItemNotFoundException

      public ItemNotFoundException(String what, Throwable cause)
      Creates a new ItemNotFoundException. The error message produced will look like: Item not found: User[ID=1]
      Parameters:
      what - A description of what was not found, for example: User[ID=1]
      cause - The cause of the exception
      Since:
      3.0