javax.datamining
Class DuplicateEntryException

java.lang.Object
  |
  +--java.lang.Throwable
        |
        +--java.lang.Exception
              |
              +--javax.datamining.JDMException
                    |
                    +--javax.datamining.InvalidObjectException
                          |
                          +--javax.datamining.DuplicateEntryException
All Implemented Interfaces:
JDMErrorCodes, java.io.Serializable

public class DuplicateEntryException
extends InvalidObjectException

The class DuplicateEntryException extends InvalidObjectException to indicate conditions where entries with the same specification are found in an object. This exception is associated with the error code JDM_DUPLICATE_ENTRY.

Author:
JSR-73 Expert Group
See Also:
JDMErrorCodes, JDMException, InvalidObjectException, Serialized Form

Field Summary
 
Fields inherited from interface javax.datamining.JDMErrorCodes
JDM_CONNECTION_CLOSE_FAILED, JDM_CONNECTION_FAILURE, JDM_CONNECTION_OPEN_FAILED, JDM_DUPLICATE_ENTRY, JDM_ENTRY_NOT_FOUND, JDM_GENERIC_ERROR, JDM_INACCESSIBLE_URI, JDM_INCOMPATIBLE_ARGUMENT_SPECIFICATION, JDM_INCOMPATIBLE_SPECIFICATION, JDM_INVALID_SETTINGS, JDM_INVALID_URI, JDM_INVALID_USAGE, JDM_OBJECT_EXISTS, JDM_OBJECT_NOT_FOUND, JDM_RESERVED_1005, JDM_TASK_EXECUTING, JDM_TASK_FAILED, JDM_TASK_NOT_EXECUTING, JDM_VENDOR_SPECIFIC_ERROR_CODE_BEGIN, JDM_VENDOR_SPECIFIC_ERROR_CODE_END, JDMR_ARRAY_MISMATCH, JDMR_ARRAY_SIZE_EXCEEDED, JDMR_INVALID_ARGUMENT, JDMR_INVALID_CLASS_NAME, JDMR_INVALID_DATA_TYPE, JDMR_INVALID_OBJECT, JDMR_INVALID_OBJECT_TYPE, JDMR_INVALID_STRING_ARGUMENT, JDMR_NULL_ARGUMENT, JDMR_RUNTIME_GENERIC_ERROR, JDMR_STRING_TOO_LONG, JDMR_UNSUPPORTED_FEATURE
 
Constructor Summary
DuplicateEntryException()
          Creates an instance of DuplicateEntryException.
DuplicateEntryException(java.lang.String errorMessage)
          Creates an instance of DuplicateEntryException with the specified message.
DuplicateEntryException(java.lang.String errorMessage, int vendorCode, java.lang.String vendorMessage)
          Creates an instance of DuplicateEntryException with the specified message, the vendor specific error code and message.
 
Methods inherited from class javax.datamining.JDMException
getErrorCode, getVendorErrorCode, getVendorErrorMessage
 
Methods inherited from class java.lang.Throwable
fillInStackTrace, getCause, getLocalizedMessage, getMessage, getStackTrace, initCause, printStackTrace, printStackTrace, printStackTrace, setStackTrace, toString
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

DuplicateEntryException

public DuplicateEntryException()
Creates an instance of DuplicateEntryException. The error message defaults to null and the error code to JDM_DUPLICATE_ENTRY.


DuplicateEntryException

public DuplicateEntryException(java.lang.String errorMessage)
Creates an instance of DuplicateEntryException with the specified message.

Parameters:
errorMessage - A message that describes the exception

DuplicateEntryException

public DuplicateEntryException(java.lang.String errorMessage,
                               int vendorCode,
                               java.lang.String vendorMessage)
Creates an instance of DuplicateEntryException with the specified message, the vendor specific error code and message.

Parameters:
errorMessage - A message that describes the exception
vendorCode - A vendor specific number to indicate the cause of the exception
vendorMessage - A vendor specific message that describes the exception