home *** CD-ROM | disk | FTP | other *** search
/ Apple Developer Connection Student Program / ADC Tools Sampler CD Disk 3 1999.iso / Metrowerks CodeWarrior / Java Support / Java_Source / Java2 / src / java / rmi / UnmarshalException.java < prev   
Encoding:
Java Source  |  1999-05-28  |  2.2 KB  |  67 lines  |  [TEXT/CWIE]

  1. /*
  2.  * @(#)UnmarshalException.java    1.7 98/09/21
  3.  *
  4.  * Copyright 1996-1998 by Sun Microsystems, Inc.,
  5.  * 901 San Antonio Road, Palo Alto, California, 94303, U.S.A.
  6.  * All rights reserved.
  7.  * 
  8.  * This software is the confidential and proprietary information
  9.  * of Sun Microsystems, Inc. ("Confidential Information").  You
  10.  * shall not disclose such Confidential Information and shall use
  11.  * it only in accordance with the terms of the license agreement
  12.  * you entered into with Sun.
  13.  */
  14.  
  15. package java.rmi;
  16.  
  17. /**
  18.  * An <code>UnmarshalException</code> can be thrown while unmarshalling the
  19.  * parameters or results of a remote method call if any of the following
  20.  * conditions occur:
  21.  * <ul>
  22.  * <li> if an exception occurs while unmarshalling the call header
  23.  * <li> if the protocol for the return value is invalid
  24.  * <li> if a <code>java.io.IOException</code> occurs unmarshalling
  25.  * parameters (on the server side) or the return value (on the client side).
  26.  * <li> if a <code>java.lang.ClassNotFoundException</code> occurs during
  27.  * unmarshalling parameters or return values
  28.  * <li> if no skeleton can be loaded on the server-side; note that skeletons
  29.  * are required in the 1.1 stub protocol, but not in the 1.2 stub protocol.
  30.  * <li> if the method hash is invalid (i.e., missing method).
  31.  * <li> if there is a failure to create a remote reference object for
  32.  * a remote object's stub when it is unmarshalled.
  33.  * </ul>
  34.  * 
  35.  * @version 1.7, 09/21/98
  36.  * @author  Ann Wollrath
  37.  * @since   JDK1.1
  38.  */
  39. public class UnmarshalException extends RemoteException {
  40.  
  41.     /* indicate compatibility with JDK 1.1.x version of class */
  42.     private static final long serialVersionUID = 594380845140740218L;
  43.  
  44.     /**
  45.      * Constructs an <code>UnmarshalException</code> with the specified
  46.      * detail message.
  47.      *
  48.      * @param s the detail message
  49.      * @since JDK1.1
  50.      */
  51.     public UnmarshalException(String s) {
  52.     super(s);
  53.     }
  54.  
  55.     /**
  56.      * Constructs an <code>UnmarshalException</code> with the specified
  57.      * detail message and nested exception.
  58.      *
  59.      * @param s the detail message
  60.      * @param ex the nested exception
  61.      * @since JDK1.1
  62.      */
  63.     public UnmarshalException(String s, Exception ex) {
  64.     super(s, ex);
  65.     }
  66. }
  67.