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

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

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

/** Exception thrown when Composition Closure or Reference Closure rules are
 * violated. (Supertype Closure rule can never be violated in JMI).
 */
@SuppressWarnings("serial")
public class ClosureViolationException extends JmiException {
    
    /**
     * Constructs an ClosureViolationException without detail message.
     * @param objectInError An instance that violated the closure rule.
     * @param elementInError Reference, Attribute or Association for which the closure rule is violated.
     */
    public ClosureViolationException(Object objectInError, RefObject elementInError) {
        super(objectInError, elementInError);
    }

    /**
     * Constructs an ClosureViolationException with the specified detail message.
     * @param objectInError An instance that violated the closure rule.
     * @param elementInError Reference, Attribute or Association for which the closure rule is violated.
     * @param msg the detail message.
     */
    public ClosureViolationException(Object objectInError, RefObject elementInError, String msg) {
        super(objectInError, elementInError, msg);
    }
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy