KickJava   Java API By Example, From Geeks To Geeks.

Java > Open Source Codes > java > rmi > UnexpectedException


1 /*
2  * @(#)UnexpectedException.java 1.12 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  * An <code>UnexpectedException</code> is thrown if the client of a
12  * remote method call receives, as a result of the call, a checked
13  * exception that is not among the checked exception types declared in the
14  * <code>throws</code> clause of the method in the remote interface.
15  *
16  * @version 1.12, 12/19/03
17  * @author Roger Riggs
18  * @since JDK1.1
19  */

20 public class UnexpectedException extends RemoteException JavaDoc {
21
22     /* indicate compatibility with JDK 1.1.x version of class */
23     private static final long serialVersionUID = 1800467484195073863L;
24
25     /**
26      * Constructs an <code>UnexpectedException</code> with the specified
27      * detail message.
28      *
29      * @param s the detail message
30      * @since JDK1.1
31      */

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

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