javax.jmi.reflect
Class TypeMismatchException
java.lang.Object
|
+--java.lang.Throwable
|
+--java.lang.Exception
|
+--java.lang.RuntimeException
|
+--javax.jmi.reflect.JmiException
|
+--javax.jmi.reflect.TypeMismatchException
- All Implemented Interfaces:
- java.io.Serializable
- public class TypeMismatchException
- extends JmiException
Thrown to indicate that provided parameter or element of collection is
is of wrong type.
- See Also:
- Serialized Form
|
Constructor Summary |
TypeMismatchException(java.lang.Class expectedType,
java.lang.Object objectInError,
RefObject elementInError)
Constructs an TypeMismatchException without detail message. |
TypeMismatchException(java.lang.Class expectedType,
java.lang.Object objectInError,
RefObject elementInError,
java.lang.String msg)
Constructs an TypeMismatchException with the specified detail message. |
|
Method Summary |
java.lang.Class |
getExpectedType()
Returns class of expected type. |
| 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 |
TypeMismatchException
public TypeMismatchException(java.lang.Class expectedType,
java.lang.Object objectInError,
RefObject elementInError)
- Constructs an
TypeMismatchException without detail message.
- Parameters:
expectedType - class of expected type.objectInError - value that caused this exception.elementInError - Attribute, Reference, Parameter or AssociationEnd for the value that is in error.
TypeMismatchException
public TypeMismatchException(java.lang.Class expectedType,
java.lang.Object objectInError,
RefObject elementInError,
java.lang.String msg)
- Constructs an
TypeMismatchException with the specified detail message.
- Parameters:
expectedType - class of expected type.objectInError - value that caused this exception.elementInError - Attribute, Reference, Parameter or AssociationEnd for the value that is in error.msg - the detail message.
getExpectedType
public java.lang.Class getExpectedType()
- Returns class of expected type.
- Returns:
- expected type.