1. /*
  2. * @(#)StubNotFoundException.java 1.14 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. * 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.14, 01/23/03
  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. * @since JDK1.1
  30. */
  31. public StubNotFoundException(String s) {
  32. super(s);
  33. }
  34. /**
  35. * Constructs a <code>StubNotFoundException</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 StubNotFoundException(String s, Exception ex) {
  43. super(s, ex);
  44. }
  45. }