javax.jmi.reflect
Class CompositionViolationException
java.lang.Object
|
+--java.lang.Throwable
|
+--java.lang.Exception
|
+--java.lang.RuntimeException
|
+--javax.jmi.reflect.JmiException
|
+--javax.jmi.reflect.CompositionViolationException
- All Implemented Interfaces:
- java.io.Serializable
- public class CompositionViolationException
- extends JmiException
Exception thrown when an instance object is going to become owned by more than one element (in sense of aggregation semantics).
- See Also:
- Serialized Form
| 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 |
CompositionViolationException
public CompositionViolationException(java.lang.Object objectInError,
RefObject elementInError)
- Constructs a
CompositionViolationException without detail message.
- Parameters:
objectInError - An instance (component) that caused the composition violation.elementInError - Attribute, Reference or Association that is being updated to violate the composition.
CompositionViolationException
public CompositionViolationException(java.lang.Object objectInError,
RefObject elementInError,
java.lang.String msg)
- Constructs a
CompositionViolationException with the specified detail message.
- Parameters:
objectInError - An instance (component) that caused the composition voilation.elementInError - Attribute, Reference or Association that is being updated to violate the composition.msg - the detail message.