org.omg.IOP.CodecPackage

Class TypeMismatch

public final class TypeMismatch extends UserException implements IDLEntity, Serializable

The TypeMismatch may be thrown by various methods in org.omg.DynamicAny package when the operation is not applicable due unexpected {@link org.omg.CORBA.TypeCode}.
Constructor Summary
TypeMismatch()
Create TypeMismatch with no explaining message.
TypeMismatch(String why)
Create the TypeMismatch with explaining message.

Constructor Detail

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.