org.omg.IOP.CodecPackage
Class InvalidTypeForEncoding

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.InvalidTypeForEncoding
All Implemented Interfaces:
Serializable, IDLEntity

public final class InvalidTypeForEncoding
extends UserException
implements IDLEntity, Serializable

This exception is raised by CodecOperations.encode(org.omg.CORBA.Any) or CodecOperations.encode_value(org.omg.CORBA.Any) when the type is not valid for the encoding. For instance, the "wide" character string is not a valid type for GIOP version 1.0.

See Also:
CodecOperations, Serialized Form

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

InvalidTypeForEncoding

public InvalidTypeForEncoding()
Create InvalidTypeForEncoding with no explaining message.


InvalidTypeForEncoding

public InvalidTypeForEncoding(String why)
Create the InvalidTypeForEncoding with explaining message.

Parameters:
why - a string, explaining, why this exception has been thrown.