1. /*
  2. * @(#)UnmarshalException.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. * An <code>UnmarshalException</code> can be thrown while unmarshalling the
  13. * parameters or results of a remote method call if any of the following
  14. * conditions occur:
  15. * <ul>
  16. * <li> if an exception occurs while unmarshalling the call header
  17. * <li> if the protocol for the return value is invalid
  18. * <li> if a <code>java.io.IOException</code> occurs unmarshalling
  19. * parameters (on the server side) or the return value (on the client side).
  20. * <li> if a <code>java.lang.ClassNotFoundException</code> occurs during
  21. * unmarshalling parameters or return values
  22. * <li> if no skeleton can be loaded on the server-side; note that skeletons
  23. * are required in the 1.1 stub protocol, but not in the 1.2 stub protocol.
  24. * <li> if the method hash is invalid (i.e., missing method).
  25. * <li> if there is a failure to create a remote reference object for
  26. * a remote object's stub when it is unmarshalled.
  27. * </ul>
  28. *
  29. * @version 1.9, 02/02/00
  30. * @author Ann Wollrath
  31. * @since JDK1.1
  32. */
  33. public class UnmarshalException extends RemoteException {
  34. /* indicate compatibility with JDK 1.1.x version of class */
  35. private static final long serialVersionUID = 594380845140740218L;
  36. /**
  37. * Constructs an <code>UnmarshalException</code> with the specified
  38. * detail message.
  39. *
  40. * @param s the detail message
  41. * @since JDK1.1
  42. */
  43. public UnmarshalException(String s) {
  44. super(s);
  45. }
  46. /**
  47. * Constructs an <code>UnmarshalException</code> with the specified
  48. * detail message and nested exception.
  49. *
  50. * @param s the detail message
  51. * @param ex the nested exception
  52. * @since JDK1.1
  53. */
  54. public UnmarshalException(String s, Exception ex) {
  55. super(s, ex);
  56. }
  57. }