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
public class InstanceReferenceException extends ProfileException
Exception used to indicate that an invalid instance reference is attempted.- Since:
- 5.0
- Author:
- O. Kerpershoek
- See Also:
- Serialized Form
-
-
Constructor Summary
Constructors Constructor Description InstanceReferenceException​(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
All Methods Instance Methods Concrete Methods Modifier and Type Method Description EntityValue
getInstanceId()
This 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 Detail
-
InstanceReferenceException
public InstanceReferenceException​(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.- Parameters:
instanceId
- The ID of the instance that was referred to.message
- The message explaining why the reference was not allowed.
-
-
Method Detail
-
getInstanceId
public EntityValue getInstanceId()
This method returns the instance ID that was referred to.- Returns:
- the instance ID that was referred to.
-
-