Ice 3.7 Slice API Reference
Data Members | List of all members
Ice::UnexpectedObjectException Local Exception Reference

This exception is raised if the type of an unmarshaled Slice class instance does not match its expected type. More...

defined in <Ice/LocalException.ice>

["cpp:ice_print"]
local exception UnexpectedObjectException extends Ice::MarshalException { ... }

Inheritance diagram for Ice::UnexpectedObjectException:
Inheritance graph
[legend]
Collaboration diagram for Ice::UnexpectedObjectException:
Collaboration graph
[legend]

Data Members

string expectedType
 The Slice type ID that was expected by the receiving operation. More...
 
string type
 The Slice type ID of the class instance that was unmarshaled. More...
 
- Data Members inherited from Ice::ProtocolException
string reason
 The reason for the failure. More...
 

Detailed Description

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.

Data Member Documentation

◆ expectedType

string expectedType

The Slice type ID that was expected by the receiving operation.

◆ type

string type

The Slice type ID of the class instance that was unmarshaled.


The documentation for this exception was generated from the following file: