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