Package com.zeroc.Ice
Class UnexpectedObjectException
java.lang.Object
java.lang.Throwable
java.lang.Exception
java.lang.RuntimeException
com.zeroc.Ice.Exception
com.zeroc.Ice.LocalException
com.zeroc.Ice.ProtocolException
com.zeroc.Ice.MarshalException
com.zeroc.Ice.UnexpectedObjectException
- All Implemented Interfaces:
Serializable
,Cloneable
This exception is raised if the type of an unmarshaled Slice class instance does
not match its expected type.
This can happen if client and server are compiled with mismatched Slice
definitions or if a class of the wrong type is passed as a parameter
or return value using dynamic invocation. This exception can also be
raised if IceStorm is used to send Slice class instances and
an operation is subscribed to the wrong topic.
- See Also:
-
Field Summary
FieldsModifier and TypeFieldDescriptionThe Slice type ID that was expected by the receiving operation.The Slice type ID of the class instance that was unmarshaled.Fields inherited from class com.zeroc.Ice.ProtocolException
reason
-
Constructor Summary
ConstructorsConstructorDescriptionUnexpectedObjectException
(String reason, String type, String expectedType) UnexpectedObjectException
(String reason, String type, String expectedType, Throwable cause) -
Method Summary
Methods inherited from class java.lang.Throwable
addSuppressed, fillInStackTrace, getCause, getLocalizedMessage, getMessage, getStackTrace, getSuppressed, initCause, printStackTrace, printStackTrace, printStackTrace, setStackTrace
-
Field Details
-
type
The Slice type ID of the class instance that was unmarshaled. -
expectedType
The Slice type ID that was expected by the receiving operation.
-
-
Constructor Details
-
UnexpectedObjectException
public UnexpectedObjectException() -
UnexpectedObjectException
-
UnexpectedObjectException
-
UnexpectedObjectException
-
-
Method Details
-
ice_id
Description copied from class:Exception
Returns the type id of this exception.- Overrides:
ice_id
in classMarshalException
- Returns:
- The type id of this exception.
-