1. /*
  2. * @(#)UnmarshalException.java 1.11 03/01/23
  3. *
  4. * Copyright 2003 Sun Microsystems, Inc. All rights reserved.
  5. * SUN PROPRIETARY/CONFIDENTIAL. Use is subject to license terms.
  6. */
  7. package java.rmi;
  8. /**
  9. * An <code>UnmarshalException</code> can be thrown while unmarshalling the
  10. * parameters or results of a remote method call if any of the following
  11. * conditions occur:
  12. * <ul>
  13. * <li> if an exception occurs while unmarshalling the call header
  14. * <li> if the protocol for the return value is invalid
  15. * <li> if a <code>java.io.IOException</code> occurs unmarshalling
  16. * parameters (on the server side) or the return value (on the client side).
  17. * <li> if a <code>java.lang.ClassNotFoundException</code> occurs during
  18. * unmarshalling parameters or return values
  19. * <li> if no skeleton can be loaded on the server-side; note that skeletons
  20. * are required in the 1.1 stub protocol, but not in the 1.2 stub protocol.
  21. * <li> if the method hash is invalid (i.e., missing method).
  22. * <li> if there is a failure to create a remote reference object for
  23. * a remote object's stub when it is unmarshalled.
  24. * </ul>
  25. *
  26. * @version 1.11, 01/23/03
  27. * @author Ann Wollrath
  28. * @since JDK1.1
  29. */
  30. public class UnmarshalException extends RemoteException {
  31. /* indicate compatibility with JDK 1.1.x version of class */
  32. private static final long serialVersionUID = 594380845140740218L;
  33. /**
  34. * Constructs an <code>UnmarshalException</code> with the specified
  35. * detail message.
  36. *
  37. * @param s the detail message
  38. * @since JDK1.1
  39. */
  40. public UnmarshalException(String s) {
  41. super(s);
  42. }
  43. /**
  44. * Constructs an <code>UnmarshalException</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 UnmarshalException(String s, Exception ex) {
  52. super(s, ex);
  53. }
  54. }