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