1. /*
  2. * @(#)MarshalException.java 1.8 01/11/29
  3. *
  4. * Copyright 2002 Sun Microsystems, Inc. All rights reserved.
  5. * SUN PROPRIETARY/CONFIDENTIAL. Use is subject to license terms.
  6. */
  7. package java.rmi;
  8. /**
  9. * A <code>MarshalException</code> is thrown if a
  10. * <code>java.io.IOException</code> occurs while marshalling the remote call
  11. * header, arguments or return value for a remote method call. A
  12. * <code>MarshalException</code> is also thrown if the receiver does not
  13. * support the protocol version of the sender.
  14. *
  15. * <p>If a <code>MarshalException</code> occurs during a remote method call,
  16. * the call may or may not have reached the server. If the call did reach the
  17. * server, parameters may have been deserialized. A call may not be
  18. * retransmitted after a <code>MarshalException</code> and reliably preserve
  19. * "at most once" call semantics.
  20. *
  21. * @version 1.8, 11/29/01
  22. * @author Ann Wollrath
  23. * @since JDK1.1
  24. */
  25. public class MarshalException extends RemoteException {
  26. /* indicate compatibility with JDK 1.1.x version of class */
  27. private static final long serialVersionUID = 6223554758134037936L;
  28. /**
  29. * Constructs a <code>MarshalException</code> with the specified
  30. * detail message.
  31. *
  32. * @param s the detail message
  33. * @since JDK1.1
  34. */
  35. public MarshalException(String s) {
  36. super(s);
  37. }
  38. /**
  39. * Constructs a <code>MarshalException</code> with the specified
  40. * detail message and nested exception.
  41. *
  42. * @param s the detail message
  43. * @param ex the nested exception
  44. * @since JDK1.1
  45. */
  46. public MarshalException(String s, Exception ex) {
  47. super(s, ex);
  48. }
  49. }