KickJava   Java API By Example, From Geeks To Geeks.

Java > Open Source Codes > java > net > SocketTimeoutException


1 /*
2  * @(#)SocketTimeoutException.java 1.5 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 a timeout has occurred on a socket read or accept.
12  *
13  * @since 1.4
14  */

15
16 public class SocketTimeoutException extends java.io.InterruptedIOException JavaDoc {
17
18     /**
19      * Constructs a new SocketTimeoutException with a detail
20      * message.
21      * @param msg the detail message
22      */

23     public SocketTimeoutException(String JavaDoc msg) {
24     super(msg);
25     }
26
27     /**
28      * Construct a new SocketTimeoutException with no detailed message.
29      */

30     public SocketTimeoutException() {}
31 }
32
Popular Tags