org.omg.IOP.CodecPackage
Class TypeMismatch

java.lang.Object
  extended by java.lang.Throwable
      extended by java.lang.Exception
          extended by org.omg.CORBA.UserException
              extended by org.omg.IOP.CodecPackage.TypeMismatch
All Implemented Interfaces:
Serializable, IDLEntity

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 TypeCode.

See Also:
Serialized Form

Constructor Summary
TypeMismatch()
          Create TypeMismatch with no explaining message.
TypeMismatch(String why)
          Create the TypeMismatch with explaining message.
 
Method Summary
 
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

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.