Class InstanceException

All Implemented Interfaces:
Serializable
Direct Known Subclasses:
DuplicateInstanceException, InstanceNotFoundException

public abstract class InstanceException extends ModelException
See Also:
  • Constructor Details

    • InstanceException

      protected InstanceException(String specificMessage, Object key, Class clazz)
      Creates an exception, informing about the message, the key of the object that causes it and the object class name.
      Parameters:
      specificMessage - the error message.
      key - the key of the object that produces the error.
      clazz - the class of the object that produces the error.
    • InstanceException

      protected InstanceException(String specificMessage, Object key, String className)
      Creates an exception, informing about the message, the key of the object that causes it and the object class name.
      Parameters:
      specificMessage - the error message.
      key - the key of the object that produces the error.
      className - the class name of the object that produces the error.
  • Method Details

    • getKey

      public Object getKey()
      Returns the key of the object that caused the exception.
      Returns:
      the key.
    • getClassName

      public String getClassName()
      Returns the class name of the object that caused the exception.
      Returns:
      the class name.