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