Package nz.org.riskscape.engine
Class ObjectAlreadyExistsException
java.lang.Object
java.lang.Throwable
java.lang.Exception
java.lang.RuntimeException
nz.org.riskscape.engine.RiskscapeException
nz.org.riskscape.engine.IdentifiedException
nz.org.riskscape.engine.ObjectAlreadyExistsException
- All Implemented Interfaces:
Serializable
Thrown when an attempt is made to add an object to an IdentifiedCollection
, but the collection
already has an object with the same id.
- See Also:
-
Constructor Summary
ConstructorDescriptionObjectAlreadyExistsException
(Identified existing, Resource existingResource, Resource newResource) -
Method Summary
Modifier and TypeMethodDescriptionMethods inherited from class nz.org.riskscape.engine.IdentifiedException
getCollectionClass
Methods inherited from class nz.org.riskscape.engine.RiskscapeException
getCause, getProblem, hasProblem
Methods inherited from class java.lang.Throwable
addSuppressed, fillInStackTrace, getLocalizedMessage, getMessage, getStackTrace, getSuppressed, initCause, printStackTrace, printStackTrace, printStackTrace, setStackTrace, toString
-
Constructor Details
-
ObjectAlreadyExistsException
public ObjectAlreadyExistsException(Identified existing, Resource existingResource, Resource newResource)
-
-
Method Details
-
getExisting
- Returns:
- The object that is currently sitting in your place.
-
getExistingResource
-
getNewResource
-