Class InstanceNotUniqueException
java.lang.Object
java.lang.Throwable
java.lang.Exception
java.lang.RuntimeException
com.aquima.interactions.foundation.exception.AppException
com.aquima.interactions.profile.ProfileException
com.aquima.interactions.profile.exception.CreateInstanceException
com.aquima.interactions.profile.exception.InstanceNotUniqueException
- All Implemented Interfaces:
Serializable
Exception used to indicate that an instance could not be created due to it's ID not being unique.
- Since:
- 5.0
- Author:
- O. Kerpershoek
- See Also:
-
Constructor Summary
ConstructorDescriptionInstanceNotUniqueException
(String entity, GUID instanceId, String instanceName) Constructs the exception with the the type of the instance and the name that was not unique. -
Method Summary
Modifier and TypeMethodDescriptionThis method returns the entity name of the instance that could not be created.This method returns the ID that was not unique.This method returns the name that was not unique.Methods inherited from class java.lang.Throwable
addSuppressed, fillInStackTrace, getCause, getLocalizedMessage, getMessage, getStackTrace, getSuppressed, initCause, printStackTrace, printStackTrace, printStackTrace, setStackTrace, toString
-
Constructor Details
-
InstanceNotUniqueException
Constructs the exception with the the type of the instance and the name that was not unique.- Parameters:
entity
- The type of the instance.instanceId
- The ID of the instance.instanceName
- The name of the instance.
-
-
Method Details
-
getEntityName
Description copied from class:CreateInstanceException
This method returns the entity name of the instance that could not be created.- Overrides:
getEntityName
in classCreateInstanceException
- Returns:
- the entity name of the instance that could not be created.
-
getInstanceId
This method returns the ID that was not unique. If the instance was created with a name, and the ID should have been generated, this method will return the IntegerValue.UNKNOWN value.- Returns:
- The ID that was not unique.
-
getInstanceName
This method returns the name that was not unique. If the instance was created with an ID, and the name should have been generated, this method will return a null value.- Returns:
- The name that was not unique.
-