Class AlreadyExistsInSystemException

java.lang.Object
java.lang.Throwable
java.lang.Exception
java.lang.RuntimeException
ubic.gemma.core.loader.util.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:
  • Constructor Details

    • AlreadyExistsInSystemException

      public AlreadyExistsInSystemException(String message)
    • AlreadyExistsInSystemException

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

    • getData

      public Object getData()
      Returns:
      the data