javax.jmi.reflect
Class DuplicateException

java.lang.Object
  |
  +--java.lang.Throwable
        |
        +--java.lang.Exception
              |
              +--java.lang.RuntimeException
                    |
                    +--javax.jmi.reflect.JmiException
                          |
                          +--javax.jmi.reflect.DuplicateException
All Implemented Interfaces:
java.io.Serializable

public class DuplicateException
extends JmiException

Exception thrown when a collection passed to an operation parameter with isUnique set to true contains duplicate values.

See Also:
Serialized Form

Constructor Summary
DuplicateException(java.lang.Object objectInError, RefObject elementInError)
          Constructs an DuplicateException without detail message.
DuplicateException(java.lang.Object objectInError, RefObject elementInError, java.lang.String msg)
          Constructs an DuplicateException with the specified detail message.
 
Methods inherited from class javax.jmi.reflect.JmiException
getElementInError, getObjectInError
 
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
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

DuplicateException

public DuplicateException(java.lang.Object objectInError,
                          RefObject elementInError)
Constructs an DuplicateException without detail message.

Parameters:
objectInError - object that was duplicated.
elementInError - Attribute, Parameter or Association End that defines the multiplicity which is being violated.

DuplicateException

public DuplicateException(java.lang.Object objectInError,
                          RefObject elementInError,
                          java.lang.String msg)
Constructs an DuplicateException with the specified detail message.

Parameters:
objectInError - object that was duplicated.
elementInError - Attribute, Parameter or Association End that defines the multiplicity which is being violated.
msg - the detail message.