Class InstanceReferenceException
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.InstanceReferenceException
- All Implemented Interfaces:
Serializable
Exception used to indicate that an invalid instance reference is attempted.
- Since:
- 5.0
- Author:
- O. Kerpershoek
- See Also:
-
Constructor Summary
ConstructorsConstructorDescriptionInstanceReferenceException
(EntityValue instanceId, String message) Constructs the exception with the ID of the instance that was referred to, and the message explaining why the reference was not allowed. -
Method Summary
Modifier and TypeMethodDescriptionThis method returns the instance ID that was referred to.Methods inherited from class java.lang.Throwable
addSuppressed, fillInStackTrace, getCause, getLocalizedMessage, getMessage, getStackTrace, getSuppressed, initCause, printStackTrace, printStackTrace, printStackTrace, setStackTrace, toString
-
Constructor Details
-
InstanceReferenceException
Constructs the exception with the ID of the instance that was referred to, and the message explaining why the reference was not allowed.- Parameters:
instanceId
- The ID of the instance that was referred to.message
- The message explaining why the reference was not allowed.
-
-
Method Details
-
getInstanceId
This method returns the instance ID that was referred to.- Returns:
- the instance ID that was referred to.
-