com.ibm.itim.dataservices.model
Class DuplicateEntryException

java.lang.Object
  |
  +--java.lang.Throwable
        |
        +--java.lang.Exception
              |
              +--com.ibm.itim.exception.ITIMException
                    |
                    +--com.ibm.itim.dataservices.model.ModelException
                          |
                          +--com.ibm.itim.dataservices.model.ModelCreationException
                                |
                                +--com.ibm.itim.dataservices.model.DuplicateEntryException
All Implemented Interfaces:
java.io.Serializable

public class DuplicateEntryException
extends ModelCreationException

DuplicateEntryException is a subclass of ModelCreationException used for errors that arise when attempting to create an entry in the data store and in case the entry already exists.

Author:
Leanne Chen
See Also:
Serialized Form

Fields inherited from class com.ibm.itim.dataservices.model.ModelException
ATTR_IN_USE, CREATE_ERROR, DUPLICATE_ENTRY, INVALID_ARG, INVALID_ATTRIBUTES, INVALID_CATEGORY, INVALID_DN, JNDI_OPERATION_ERROR, OBJECT_NOT_FOUND, PROFILE_NOT_FOUND, RELATIONSHIP_NOT_FOUND, REMOVE_ERROR, SERVER_NOT_AVAILABLE
 
Constructor Summary
DuplicateEntryException(java.lang.String message)
          Constructs an DuplicateEntryException with a message.
DuplicateEntryException(java.lang.String msg, java.lang.Throwable cause)
          Constructs an DuplicateEntryException with a message and original exception.
DuplicateEntryException(java.lang.String message, java.lang.Throwable cause, DirectoryObjectEntity entity)
          Constructs an DuplicateEntryException with a message and original exception.
 
Method Summary
 DirectoryObjectEntity getEntity()
          Returns the duplicated entity
 void setEntity(DirectoryObjectEntity entity)
          Sets the duplicated entity
 
Methods inherited from class com.ibm.itim.exception.ITIMException
getMessage, getMessage, getMessageId, getThrowable, getTokens, normalize, printStackTrace, printStackTrace, printStackTrace, toXML
 
Methods inherited from class java.lang.Throwable
fillInStackTrace, getLocalizedMessage, toString
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

DuplicateEntryException

public DuplicateEntryException(java.lang.String message)
Constructs an DuplicateEntryException with a message.
Parameters:
message - String holding a descriptive message about the exception.

DuplicateEntryException

public DuplicateEntryException(java.lang.String msg,
                               java.lang.Throwable cause)
Constructs an DuplicateEntryException with a message and original exception.
Parameters:
message - String holding a descriptive message about the exception.
originalException - The original exception that caused the problem.

DuplicateEntryException

public DuplicateEntryException(java.lang.String message,
                               java.lang.Throwable cause,
                               DirectoryObjectEntity entity)
Constructs an DuplicateEntryException with a message and original exception.
Parameters:
message - String holding a descriptive message about the exception.
originalException - The original exception that caused the problem.
entity - Identifies the entity that is duplicate to the one in the directory
Method Detail

getEntity

public DirectoryObjectEntity getEntity()
Returns the duplicated entity

setEntity

public void setEntity(DirectoryObjectEntity entity)
Sets the duplicated entity