Class DuplicateInstanceException

All Implemented Interfaces:
Serializable

public class DuplicateInstanceException extends InstanceException
Signals that the requested operation failed because an instance with the same identifier already exists.
See Also:
  • Constructor Details

    • DuplicateInstanceException

      public DuplicateInstanceException(Object key, String className)
      Creates a DuplicateInstanceException specifying the key and the class name of the instance that already exists.
      Parameters:
      key - the key of the instance that already exists.
      className - the class name of the instance that already exists.
    • DuplicateInstanceException

      public DuplicateInstanceException(Object key, Class clazz)
      Creates a DuplicateInstanceException specifying the key and the class of the instance that already exists.
      Parameters:
      key - the key of the instance that already exists.
      clazz - the class of the instance that already exists.