Class ItemAlreadyExistsException

  • All Implemented Interfaces:
    Serializable

    public class ItemAlreadyExistsException
    extends InvalidDataException
    This exception is thrown when trying to save an object and another object with the same ID already exists.
    Version:
    2.0
    Author:
    Nicklas
    See Also:
    Serialized Form
    • Constructor Detail

      • ItemAlreadyExistsException

        public ItemAlreadyExistsException​(String what)
        Creates a new ItemAlreadyExistsException. The error message produced will look like: Item already exists: User[Login=peter]
        Parameters:
        what - A description of what already exists, for example User[Login=peter]