javax.jmi.reflect.DuplicateException Maven / Gradle / Ivy
package javax.jmi.reflect;
/** Exception thrown when a collection passed to an operation parameter with isUnique
set to true
* contains duplicate values.
*/
@SuppressWarnings("serial")
public class DuplicateException extends JmiException {
/**
* Constructs an DuplicateException
without detail message.
* @param objectInError object that was duplicated.
* @param elementInError Attribute, Parameter or Association End that defines the multiplicity which is being violated.
*/
public DuplicateException(Object objectInError, RefObject elementInError) {
super(objectInError, elementInError);
}
/**
* Constructs an DuplicateException
with the specified detail message.
* @param objectInError object that was duplicated.
* @param elementInError Attribute, Parameter or Association End that defines the multiplicity which is being violated.
* @param msg the detail message.
*/
public DuplicateException(Object objectInError, RefObject elementInError, String msg) {
super(objectInError, elementInError, msg);
}
}
© 2015 - 2024 Weber Informatics LLC | Privacy Policy