KickJava   Java API By Example, From Geeks To Geeks.

Java > Open Source Codes > java > rmi > ServerRuntimeException


1 /*
2  * @(#)ServerRuntimeException.java 1.18 04/05/18
3  *
4  * Copyright 2004 Sun Microsystems, Inc. All rights reserved.
5  * SUN PROPRIETARY/CONFIDENTIAL. Use is subject to license terms.
6  */

7
8 package java.rmi;
9
10 /**
11  * From a server executing on JDK 1.1, a
12  * <code>ServerRuntimeException</code> is thrown as a result of a
13  * remote method invocation when a <code>RuntimeException</code> is
14  * thrown while processing the invocation on the server, either while
15  * unmarshalling the arguments, executing the remote method itself, or
16  * marshalling the return value.
17  *
18  * A <code>ServerRuntimeException</code> instance contains the original
19  * <code>RuntimeException</code> that occurred as its cause.
20  *
21  * <p>A <code>ServerRuntimeException</code> is not thrown from servers
22  * executing on the Java 2 platform v1.2 or later versions.
23  *
24  * @version 1.18, 05/18/04
25  * @author Ann Wollrath
26  * @since JDK1.1
27  * @deprecated no replacement
28  */

29 @Deprecated JavaDoc
30 public class ServerRuntimeException extends RemoteException JavaDoc {
31
32     /* indicate compatibility with JDK 1.1.x version of class */
33     private static final long serialVersionUID = 7054464920481467219L;
34
35     /**
36      * Constructs a <code>ServerRuntimeException</code> with the specified
37      * detail message and nested exception.
38      *
39      * @param s the detail message
40      * @param ex the nested exception
41      * @deprecated no replacement
42      * @since JDK1.1
43      */

44     @Deprecated JavaDoc
45     public ServerRuntimeException(String JavaDoc s, Exception JavaDoc ex) {
46     super(s, ex);
47     }
48 }
49
Popular Tags