All Downloads are FREE. Search and download functionalities are using the official Maven repository.

Ice.UnexpectedObjectException Maven / Gradle / Ivy

Go to download

Ice is a comprehensive RPC framework that helps you build distributed applications with minimal effort using familiar object-oriented idioms

There is a newer version: 3.7.10
Show newest version
// **********************************************************************
//
// Copyright (c) 2003-2017 ZeroC, Inc. All rights reserved.
//
// This copy of Ice is licensed to you under the terms described in the
// ICE_LICENSE file included in this distribution.
//
// **********************************************************************
//
// Ice version 3.6.4
//
// 
//
// Generated from file `LocalException.ice'
//
// Warning: do not edit this file.
//
// 
//

package Ice;

/**
 * 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.
 *
 **/
public class UnexpectedObjectException extends MarshalException
{
    public UnexpectedObjectException()
    {
        super();
        type = "";
        expectedType = "";
    }

    public UnexpectedObjectException(Throwable __cause)
    {
        super(__cause);
        type = "";
        expectedType = "";
    }

    public UnexpectedObjectException(String reason, String type, String expectedType)
    {
        super(reason);
        this.type = type;
        this.expectedType = expectedType;
    }

    public UnexpectedObjectException(String reason, String type, String expectedType, Throwable __cause)
    {
        super(reason, __cause);
        this.type = type;
        this.expectedType = expectedType;
    }

    public String
    ice_name()
    {
        return "Ice::UnexpectedObjectException";
    }

    /**
     * The Slice type ID of the class instance that was unmarshaled.
     *
     **/
    public String type;

    /**
     * The Slice type ID that was expected by the receiving operation.
     *
     **/
    public String expectedType;

    public static final long serialVersionUID = -5786936875383180611L;
}




© 2015 - 2025 Weber Informatics LLC | Privacy Policy