All Downloads are FREE. Search and download functionalities are using the official Maven repository.

javax.jmi.reflect.CompositionViolationException Maven / Gradle / Ivy

There is a newer version: 2.18.10
Show newest version
package javax.jmi.reflect;

/** Exception thrown when an instance object is going to become owned by more than one element (in sense of aggregation semantics).
 */
@SuppressWarnings("serial")
public class CompositionViolationException extends JmiException {
    
    /**
     * Constructs a CompositionViolationException without detail message.
     * @param objectInError An instance (component) that caused the composition violation.
     * @param elementInError Attribute, Reference or Association that is being updated to violate the composition.
     */
    public CompositionViolationException(Object objectInError, RefObject elementInError) {
        super(objectInError, elementInError);
    }
    
    /**
     * Constructs a CompositionViolationException with the specified detail message.
     * @param objectInError An instance (component) that caused the composition voilation.
     * @param elementInError Attribute, Reference or Association that is being updated to violate the composition.
     * @param msg the detail message.
     */
    public CompositionViolationException(Object objectInError, RefObject elementInError, String msg) {
        super(objectInError, elementInError, msg);
    }
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy