1. /*
  2. * @(#)ConnectException.java 1.10 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.net;
  11. /**
  12. * Signals that an error occurred while attempting to connect a
  13. * socket to a remote address and port. Typically, the connection
  14. * was refused remotely (e.g., no process is listening on the
  15. * remote address/port).
  16. *
  17. * @since JDK1.1
  18. */
  19. public class ConnectException extends SocketException {
  20. /**
  21. * Constructs a new ConnectException with the specified detail
  22. * message as to why the connect error occurred.
  23. * A detail message is a String that gives a specific
  24. * description of this error.
  25. * @param msg the detail message
  26. */
  27. public ConnectException(String msg) {
  28. super(msg);
  29. }
  30. /**
  31. * Construct a new ConnectException with no detailed message.
  32. */
  33. public ConnectException() {}
  34. }