1. /*
  2. * @(#)ConnectException.java 1.13 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. * A <code>ConnectException</code> is thrown if a connection is refused
  10. * to the remote host for a remote method call.
  11. *
  12. * @version 1.13, 12/19/03
  13. * @author Ann Wollrath
  14. * @since JDK1.1
  15. */
  16. public class ConnectException extends RemoteException {
  17. /* indicate compatibility with JDK 1.1.x version of class */
  18. private static final long serialVersionUID = 4863550261346652506L;
  19. /**
  20. * Constructs a <code>ConnectException</code> with the specified
  21. * detail message.
  22. *
  23. * @param s the detail message
  24. * @since JDK1.1
  25. */
  26. public ConnectException(String s) {
  27. super(s);
  28. }
  29. /**
  30. * Constructs a <code>ConnectException</code> with the specified
  31. * detail message and nested exception.
  32. *
  33. * @param s the detail message
  34. * @param ex the nested exception
  35. * @since JDK1.1
  36. */
  37. public ConnectException(String s, Exception ex) {
  38. super(s, ex);
  39. }
  40. }