javax.jmi.reflect
Class ConstraintViolationException

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

public class ConstraintViolationException
extends JmiException

Exception thrown when a constraint is violated.

See Also:
Serialized Form

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

ConstraintViolationException

public ConstraintViolationException(java.lang.Object objectInError,
                                    RefObject elementInError)
Constructs new ConstraintViolationException without detail message.

Parameters:
objectInError - object violating the constraint.
elementInError - violated constraint object.

ConstraintViolationException

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

Parameters:
objectInError - object violating the constraint.
elementInError - violated constraint object.
msg - the detail message.