Class 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 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.