javax.jmi.reflect
Class WrongSizeException

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

public class WrongSizeException
extends JmiException

Exception which arises when a collection contains fewer or more values than is required by the corresponding Multiplicity.lower and Multiplicity.upper.

See Also:
Serialized Form

Constructor Summary
WrongSizeException(RefObject elementInError)
          Creates WrongSizeException with a detail message.
WrongSizeException(RefObject elementInError, java.lang.String msg)
          Creates WrongSizeException with a 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

WrongSizeException

public WrongSizeException(RefObject elementInError)
Creates WrongSizeException with a detail message.

Parameters:
elementInError - element in error.

WrongSizeException

public WrongSizeException(RefObject elementInError,
                          java.lang.String msg)
Creates WrongSizeException with a detail message.

Parameters:
elementInError - element in error.
msg - detail message.