Path: blob/master/src/java.rmi/share/classes/java/rmi/UnmarshalException.java
41152 views
/*1* Copyright (c) 1996, 1998, Oracle and/or its affiliates. All rights reserved.2* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.3*4* This code is free software; you can redistribute it and/or modify it5* under the terms of the GNU General Public License version 2 only, as6* published by the Free Software Foundation. Oracle designates this7* particular file as subject to the "Classpath" exception as provided8* by Oracle in the LICENSE file that accompanied this code.9*10* This code is distributed in the hope that it will be useful, but WITHOUT11* ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or12* FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License13* version 2 for more details (a copy is included in the LICENSE file that14* accompanied this code).15*16* You should have received a copy of the GNU General Public License version17* 2 along with this work; if not, write to the Free Software Foundation,18* Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA.19*20* Please contact Oracle, 500 Oracle Parkway, Redwood Shores, CA 94065 USA21* or visit www.oracle.com if you need additional information or have any22* questions.23*/2425package java.rmi;2627/**28* An <code>UnmarshalException</code> can be thrown while unmarshalling the29* parameters or results of a remote method call if any of the following30* conditions occur:31* <ul>32* <li> if an exception occurs while unmarshalling the call header33* <li> if the protocol for the return value is invalid34* <li> if a <code>java.io.IOException</code> occurs unmarshalling35* parameters (on the server side) or the return value (on the client side).36* <li> if a <code>java.lang.ClassNotFoundException</code> occurs during37* unmarshalling parameters or return values38* <li> if no skeleton can be loaded on the server-side; note that skeletons39* are required in the 1.1 stub protocol, but not in the 1.2 stub protocol.40* <li> if the method hash is invalid (i.e., missing method).41* <li> if there is a failure to create a remote reference object for42* a remote object's stub when it is unmarshalled.43* </ul>44*45* @author Ann Wollrath46* @since 1.147*/48public class UnmarshalException extends RemoteException {4950/* indicate compatibility with JDK 1.1.x version of class */51private static final long serialVersionUID = 594380845140740218L;5253/**54* Constructs an <code>UnmarshalException</code> with the specified55* detail message.56*57* @param s the detail message58* @since 1.159*/60public UnmarshalException(String s) {61super(s);62}6364/**65* Constructs an <code>UnmarshalException</code> with the specified66* detail message and nested exception.67*68* @param s the detail message69* @param ex the nested exception70* @since 1.171*/72public UnmarshalException(String s, Exception ex) {73super(s, ex);74}75}767778