1. /*
  2. * @(#)UnexpectedException.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>UnexpectedException</code> is thrown if the client of a
  13. * remote method call receives, as a result of the call, a checked
  14. * exception that is not among the checked exception types declared in the
  15. * <code>throws</code> clause of the method in the remote interface.
  16. *
  17. * @version 1.9, 02/02/00
  18. * @author Roger Riggs
  19. * @since JDK1.1
  20. */
  21. public class UnexpectedException extends RemoteException {
  22. /* indicate compatibility with JDK 1.1.x version of class */
  23. private static final long serialVersionUID = 1800467484195073863L;
  24. /**
  25. * Constructs an <code>UnexpectedException</code> with the specified
  26. * detail message.
  27. *
  28. * @param s the detail message
  29. * @since JDK1.1
  30. */
  31. public UnexpectedException(String s) {
  32. super(s);
  33. }
  34. /**
  35. * Constructs a <code>UnexpectedException</code> with the specified
  36. * detail message and nested exception.
  37. *
  38. * @param s the detail message
  39. * @param ex the nested exception
  40. * @since JDK1.1
  41. */
  42. public UnexpectedException(String s, Exception ex) {
  43. super(s, ex);
  44. }
  45. }