Class UnknownInstanceException

All Implemented Interfaces:
Serializable

public class UnknownInstanceException extends ProfileException
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 Details

    • UnknownInstanceException

      public UnknownInstanceException(String entityName)
      Constructs the exception with the entity name for which no active instance could be found.
      Parameters:
      entityName - The type of the instance.
    • UnknownInstanceException

      public UnknownInstanceException(String entityName, GUID id)
      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

      public UnknownInstanceException(String entityName, String name)
      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

      public UnknownInstanceException(EntityValue id)
      Constructs the exception with the instance ID of the unknown instance.
      Parameters:
      id - The instance ID of the unknown instance.
  • Method Details

    • getEntityName

      public String getEntityName()
      This method returns the type of the unknown instance.
      Returns:
      the type of the unknown instance.
    • getInstanceName

      public String 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

      public GUID 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.