Class AlreadyExistsInSystemException

  • All Implemented Interfaces:
    Serializable

    public class AlreadyExistsInSystemException
    extends RuntimeException
    Can be thrown when an attempt is made to load data into the system that already exists. Intended to be used when simply returning the existing data would be confusing. It can hold a reference to the data that was existing.
    Author:
    pavlidis
    See Also:
    Serialized Form
    • Constructor Detail

      • AlreadyExistsInSystemException

        public AlreadyExistsInSystemException​(String message)
      • AlreadyExistsInSystemException

        public AlreadyExistsInSystemException​(String message,
                                              Object data)
        Parameters:
        message - message
        data - The data that already existed.
    • Method Detail

      • getData

        public Object getData()
        Returns:
        the data