Class UnknownInstanceException
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.UnknownInstanceException
- All Implemented Interfaces:
Serializable
This exception type is used to indicate that an instance could not be found for the specified ID.
- Since:
- 5.0
- Author:
- O. Kerpershoek
- See Also:
-
Constructor Summary
ConstructorsConstructorDescriptionConstructs the exception with the instance ID of the unknown instance.UnknownInstanceException
(String entityName) Constructs the exception with the entity name for which no active instance could be found.UnknownInstanceException
(String entityName, GUID id) Constructs the exception with the type and ID of the instance that is unknown.UnknownInstanceException
(String entityName, String name) Constructs the exception with the type and name of the unknown instance. -
Method Summary
Modifier and TypeMethodDescriptionThis method returns the type of the unknown instance.This method returns the ID of the unknown instance.This method returns the name of the unknown instance.Methods inherited from class java.lang.Throwable
addSuppressed, fillInStackTrace, getCause, getLocalizedMessage, getMessage, getStackTrace, getSuppressed, initCause, printStackTrace, printStackTrace, printStackTrace, setStackTrace, toString
-
Constructor Details
-
UnknownInstanceException
Constructs the exception with the entity name for which no active instance could be found.- Parameters:
entityName
- The type of the instance.
-
UnknownInstanceException
Constructs the exception with the type and ID of the instance that is unknown.- Parameters:
entityName
- The type of the instance.id
- The ID of the instance
-
UnknownInstanceException
Constructs the exception with the type and name of the unknown instance.- Parameters:
entityName
- The type of the instance.name
- The name of the instance.
-
UnknownInstanceException
Constructs the exception with the instance ID of the unknown instance.- Parameters:
id
- The instance ID of the unknown instance.
-
-
Method Details
-
getEntityName
This method returns the type of the unknown instance.- Returns:
- the type of the unknown instance.
-
getInstanceName
This method returns the name of the unknown instance. If the instance was requested by ID, this method will return a null value.- Returns:
- The name of the unknown instance.
-
getInstanceId
This method returns the ID of the unknown instance. If the instance was requested by name, this method will return a null value.- Returns:
- The ID of the unknown instance.
-