org.omg.CORBA.DynAnyPackage
Class TypeMismatch
java.lang.Object
java.lang.Throwable
java.lang.Exception
org.omg.CORBA.UserException
org.omg.CORBA.DynAnyPackage.TypeMismatch
- All Implemented Interfaces:
- Serializable, IDLEntity
public final class TypeMismatch
- extends UserException
- implements Serializable, IDLEntity
This exception is thrown by dynamic any accessor methods when type of the actual contents do not match what is trying to be accessed.
- See Also:
- Serialized Form
Constructor Summary |
TypeMismatch()
Creates TypeMismatch without explaining message. |
TypeMismatch(String reason)
Created TypeMismatch exception, providing the explaining message. |
Methods inherited from class java.lang.Throwable |
fillInStackTrace, getCause, getLocalizedMessage, getMessage, getStackTrace, initCause, printStackTrace, printStackTrace, printStackTrace, setStackTrace, toString |
TypeMismatch
public TypeMismatch()
- Creates TypeMismatch without explaining message.
TypeMismatch
public TypeMismatch(String reason)
- Created TypeMismatch exception, providing the explaining message.
- Parameters:
reason
- the reason of throwing the exception.