KickJava   Java API By Example, From Geeks To Geeks.

Java > Open Source Codes > java > net > NoRouteToHostException


1 /*
2  * @(#)NoRouteToHostException.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.net;
9
10 /**
11  * Signals that an error occurred while attempting to connect a
12  * socket to a remote address and port. Typically, the remote
13  * host cannot be reached because of an intervening firewall, or
14  * if an intermediate router is down.
15  *
16  * @since JDK1.1
17  */

18 public class NoRouteToHostException extends SocketException JavaDoc {
19     /**
20      * Constructs a new NoRouteToHostException with the specified detail
21      * message as to why the remote host cannot be reached.
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 NoRouteToHostException(String JavaDoc msg) {
27     super(msg);
28     }
29
30     /**
31      * Construct a new NoRouteToHostException with no detailed message.
32      */

33     public NoRouteToHostException() {}
34 }
35
Popular Tags