KickJava   Java API By Example, From Geeks To Geeks.

Java > Open Source Codes > java > rmi > ServerException


1 /*
2  * @(#)ServerException.java 1.15 03/12/19
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  * A <code>ServerException</code> is thrown as a result of a remote method
12  * invocation when a <code>RemoteException</code> is thrown while processing
13  * the invocation on the server, either while unmarshalling the arguments or
14  * executing the remote method itself.
15  *
16  * A <code>ServerException</code> instance contains the original
17  * <code>RemoteException</code> that occurred as its cause.
18  *
19  * @version 1.15, 12/19/03
20  * @author Ann Wollrath
21  * @since JDK1.1
22  */

23 public class ServerException extends RemoteException JavaDoc {
24
25     /* indicate compatibility with JDK 1.1.x version of class */
26     private static final long serialVersionUID = -4775845313121906682L;
27
28     /**
29      * Constructs a <code>ServerException</code> with the specified
30      * detail message.
31      *
32      * @param s the detail message
33      * @since JDK1.1
34      */

35     public ServerException(String JavaDoc s) {
36     super(s);
37     }
38
39     /**
40      * Constructs a <code>ServerException</code> with the specified
41      * detail message and nested exception.
42      *
43      * @param s the detail message
44      * @param ex the nested exception
45      * @since JDK1.1
46      */

47     public ServerException(String JavaDoc s, Exception JavaDoc ex) {
48     super(s, ex);
49     }
50 }
51
Popular Tags