KickJava   Java API By Example, From Geeks To Geeks.

Java > Open Source Codes > java > rmi > UnmarshalException


1 /*
2  * @(#)UnmarshalException.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>UnmarshalException</code> can be thrown while unmarshalling the
12  * parameters or results of a remote method call if any of the following
13  * conditions occur:
14  * <ul>
15  * <li> if an exception occurs while unmarshalling the call header
16  * <li> if the protocol for the return value is invalid
17  * <li> if a <code>java.io.IOException</code> occurs unmarshalling
18  * parameters (on the server side) or the return value (on the client side).
19  * <li> if a <code>java.lang.ClassNotFoundException</code> occurs during
20  * unmarshalling parameters or return values
21  * <li> if no skeleton can be loaded on the server-side; note that skeletons
22  * are required in the 1.1 stub protocol, but not in the 1.2 stub protocol.
23  * <li> if the method hash is invalid (i.e., missing method).
24  * <li> if there is a failure to create a remote reference object for
25  * a remote object's stub when it is unmarshalled.
26  * </ul>
27  *
28  * @version 1.12, 12/19/03
29  * @author Ann Wollrath
30  * @since JDK1.1
31  */

32 public class UnmarshalException extends RemoteException JavaDoc {
33
34     /* indicate compatibility with JDK 1.1.x version of class */
35     private static final long serialVersionUID = 594380845140740218L;
36
37     /**
38      * Constructs an <code>UnmarshalException</code> with the specified
39      * detail message.
40      *
41      * @param s the detail message
42      * @since JDK1.1
43      */

44     public UnmarshalException(String JavaDoc s) {
45     super(s);
46     }
47
48     /**
49      * Constructs an <code>UnmarshalException</code> with the specified
50      * detail message and nested exception.
51      *
52      * @param s the detail message
53      * @param ex the nested exception
54      * @since JDK1.1
55      */

56     public UnmarshalException(String JavaDoc s, Exception JavaDoc ex) {
57     super(s, ex);
58     }
59 }
60
Popular Tags