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 / MarshalException.java < prev    next >
Encoding:
Java Source  |  1999-05-28  |  1.9 KB  |  62 lines  |  [TEXT/CWIE]

  1. /*
  2.  * @(#)MarshalException.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.  * A <code>MarshalException</code> is thrown if a
  19.  * <code>java.io.IOException</code> occurs while marshalling the remote call
  20.  * header, arguments or return value for a remote method call.  A
  21.  * <code>MarshalException</code> is also thrown if the receiver does not
  22.  * support the protocol version of the sender.
  23.  *
  24.  * <p>If a <code>MarshalException</code> occurs during a remote method call,
  25.  * the call may or may not have reached the server.  If the call did reach the
  26.  * server, parameters may have been deserialized.  A call may not be
  27.  * retransmitted after a <code>MarshalException</code> and reliably preserve
  28.  * "at most once" call semantics.
  29.  * 
  30.  * @version 1.7, 09/21/98
  31.  * @author  Ann Wollrath
  32.  * @since   JDK1.1
  33.  */
  34. public class MarshalException extends RemoteException {
  35.  
  36.     /* indicate compatibility with JDK 1.1.x version of class */
  37.     private static final long serialVersionUID = 6223554758134037936L;
  38.  
  39.     /**
  40.      * Constructs a <code>MarshalException</code> with the specified
  41.      * detail message.
  42.      *
  43.      * @param s the detail message
  44.      * @since JDK1.1
  45.      */
  46.     public MarshalException(String s) {
  47.     super(s);
  48.     }
  49.  
  50.     /**
  51.      * Constructs a <code>MarshalException</code> with the specified
  52.      * detail message and nested exception.
  53.      *
  54.      * @param s the detail message
  55.      * @param ex the nested exception
  56.      * @since JDK1.1
  57.      */
  58.     public MarshalException(String s, Exception ex) {
  59.     super(s, ex);
  60.     }
  61. }
  62.