Package com.zeroc.Ice

Class UnexpectedObjectException

All Implemented Interfaces:
Serializable, Cloneable

public class UnexpectedObjectException extends MarshalException
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 Details

    • type

      public String type
      The Slice type ID of the class instance that was unmarshaled.
    • expectedType

      public String expectedType
      The Slice type ID that was expected by the receiving operation.
  • Constructor Details

    • UnexpectedObjectException

      public UnexpectedObjectException()
    • UnexpectedObjectException

      public UnexpectedObjectException(Throwable cause)
    • UnexpectedObjectException

      public UnexpectedObjectException(String reason, String type, String expectedType)
    • UnexpectedObjectException

      public UnexpectedObjectException(String reason, String type, String expectedType, Throwable cause)
  • Method Details

    • ice_id

      public String ice_id()
      Description copied from class: Exception
      Returns the type id of this exception.
      Overrides:
      ice_id in class MarshalException
      Returns:
      The type id of this exception.