org.omg.DynamicAny.DynAnyPackage
Class TypeMismatch
java.lang.Object
java.lang.Throwable
java.lang.Exception
org.omg.CORBA.UserException
org.omg.DynamicAny.DynAnyPackage.TypeMismatch
- All Implemented Interfaces:
- Serializable, IDLEntity
public final class TypeMismatch
- extends UserException
- implements IDLEntity, Serializable
Raised when the operation cannot be performed because the involved
data structure has the mismatching typecode. For instance, it is
raised on the attempt to set the array content, when the value being set
has a different type than the array element.
- See Also:
- Serialized Form
Constructor Summary |
TypeMismatch()
Create TypeMismatch with no explaining
message. |
TypeMismatch(String why)
Create the TypeMismatch with explaining
message. |
Methods inherited from class java.lang.Throwable |
fillInStackTrace, getCause, getLocalizedMessage, getMessage, getStackTrace, initCause, printStackTrace, printStackTrace, printStackTrace, setStackTrace, toString |
TypeMismatch
public TypeMismatch()
- Create TypeMismatch with no explaining
message.
TypeMismatch
public TypeMismatch(String why)
- Create the TypeMismatch with explaining
message.
- Parameters:
why
- a string, explaining, why this exception has been thrown.