javax.jmi.reflect
Class ClosureViolationException

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

public class ClosureViolationException
extends JmiException

Exception thrown when Composition Closure or Reference Closure rules are violated. (Supertype Closure rule can never be violated in JMI).

See Also:
Serialized Form

Constructor Summary
ClosureViolationException(java.lang.Object objectInError, RefObject elementInError)
          Constructs an ClosureViolationException without detail message.
ClosureViolationException(java.lang.Object objectInError, RefObject elementInError, java.lang.String msg)
          Constructs an ClosureViolationException 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

ClosureViolationException

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

Parameters:
objectInError - An instance that violated the closure rule.
elementInError - Reference, Attribute or Association for which the closure rule is violated.

ClosureViolationException

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

Parameters:
objectInError - An instance that violated the closure rule.
elementInError - Reference, Attribute or Association for which the closure rule is violated.
msg - the detail message.