Path: blob/master/src/java.rmi/share/classes/java/rmi/ServerRuntimeException.java
41152 views
/*1* Copyright (c) 1996, 2004, 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* From a server executing on JDK 1.1, a29* <code>ServerRuntimeException</code> is thrown as a result of a30* remote method invocation when a <code>RuntimeException</code> is31* thrown while processing the invocation on the server, either while32* unmarshalling the arguments, executing the remote method itself, or33* marshalling the return value.34*35* A <code>ServerRuntimeException</code> instance contains the original36* <code>RuntimeException</code> that occurred as its cause.37*38* <p>A <code>ServerRuntimeException</code> is not thrown from servers39* executing on the Java 2 platform v1.2 or later versions.40*41* @author Ann Wollrath42* @since 1.143* @deprecated no replacement44*/45@Deprecated46public class ServerRuntimeException extends RemoteException {4748/* indicate compatibility with JDK 1.1.x version of class */49private static final long serialVersionUID = 7054464920481467219L;5051/**52* Constructs a <code>ServerRuntimeException</code> with the specified53* detail message and nested exception.54*55* @param s the detail message56* @param ex the nested exception57* @deprecated no replacement58* @since 1.159*/60@Deprecated61public ServerRuntimeException(String s, Exception ex) {62super(s, ex);63}64}656667