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