Package ubic.gemma.core.loader.util
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:
- Serialized Form
-
-
Constructor Summary
Constructors Constructor Description AlreadyExistsInSystemException(String message)
AlreadyExistsInSystemException(String message, Object data)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description Object
getData()
-
Methods inherited from class java.lang.Throwable
addSuppressed, fillInStackTrace, getCause, getLocalizedMessage, getMessage, getStackTrace, getSuppressed, initCause, printStackTrace, printStackTrace, printStackTrace, setStackTrace, toString
-
-
-
-
Method Detail
-
getData
public Object getData()
- Returns:
- the data
-
-