Class CreateInstanceException
- 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
-
- All Implemented Interfaces:
Serializable
- Direct Known Subclasses:
InstanceNotUniqueException
public class CreateInstanceException extends ProfileException
Exception used to indicate that an instance could not be created.- Since:
- 5.0
- Author:
- O. Kerpershoek
- See Also:
- Serialized Form
-
-
Constructor Summary
Constructors Constructor Description CreateInstanceException​(String entityName, String message)
Basic constructor with the name of the entity and a message explaining the cause of the error.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description String
getEntityName()
This method returns the entity name of the instance that could not be created.-
Methods inherited from class java.lang.Throwable
addSuppressed, fillInStackTrace, getCause, getLocalizedMessage, getMessage, getStackTrace, getSuppressed, initCause, printStackTrace, printStackTrace, printStackTrace, setStackTrace, toString
-
-
-
-
Constructor Detail
-
CreateInstanceException
public CreateInstanceException​(String entityName, String message)
Basic constructor with the name of the entity and a message explaining the cause of the error.- Parameters:
entityName
- The name of the entity for which no instance could be created.message
- The message explaining the error that occurred.
-
-
Method Detail
-
getEntityName
public String getEntityName()
This method returns the entity name of the instance that could not be created.- Returns:
- the entity name of the instance that could not be created.
-
-