1 /* 2 * @(#)ConnectException.java 1.14 05/11/17 3 * 4 * Copyright 2006 Sun Microsystems, Inc. All rights reserved. 5 * SUN PROPRIETARY/CONFIDENTIAL. Use is subject to license terms. 6 */ 7 8 package java.net; 9 10 /** 11 * Signals that an error occurred while attempting to connect a 12 * socket to a remote address and port. Typically, the connection 13 * was refused remotely (e.g., no process is listening on the 14 * remote address/port). 15 * 16 * @since JDK1.1 17 */ 18 public class ConnectException extends SocketException { 19 /** 20 * Constructs a new ConnectException with the specified detail 21 * message as to why the connect error occurred. 22 * A detail message is a String that gives a specific 23 * description of this error. 24 * @param msg the detail message 25 */ 26 public ConnectException(String msg) { 27 super(msg); 28 } 29 30 /** 31 * Construct a new ConnectException with no detailed message. 32 */ 33 public ConnectException() {} 34 } 35