1. /*
  2. * @(#)StubNotFoundException.java 1.10 01/11/29
  3. *
  4. * Copyright 2002 Sun Microsystems, Inc. All rights reserved.
  5. * SUN PROPRIETARY/CONFIDENTIAL. Use is subject to license terms.
  6. */
  7. package java.rmi;
  8. /**
  9. * A <code>StubNotFoundException</code> is thrown if a valid stub class
  10. * could not be found for a remote object when it is exported.
  11. * A <code>StubNotFoundException</code> may also be
  12. * thrown when an activatable object is registered via the
  13. * <code>java.rmi.activation.Activatable.register</code> method.
  14. *
  15. * @version 1.10, 11/29/01
  16. * @author Roger Riggs
  17. * @since JDK1.1
  18. * @see java.rmi.server.UnicastRemoteObject
  19. * @see java.rmi.activation.Activatable
  20. */
  21. public class StubNotFoundException extends RemoteException {
  22. /* indicate compatibility with JDK 1.1.x version of class */
  23. private static final long serialVersionUID = -7088199405468872373L;
  24. /**
  25. * Constructs a <code>StubNotFoundException</code> with the specified
  26. * detail message and nested exception.
  27. *
  28. * @param s the detail message
  29. * @param ex the nested exception
  30. * @since JDK1.1
  31. */
  32. public StubNotFoundException(String s) {
  33. super(s);
  34. }
  35. /**
  36. * Constructs a <code>StubNotFoundException</code> with the specified
  37. * detail message and nested exception.
  38. *
  39. * @param s the detail message
  40. * @param ex the nested exception
  41. * @since JDK1.1
  42. */
  43. public StubNotFoundException(String s, Exception ex) {
  44. super(s, ex);
  45. }
  46. }