KickJava   Java API By Example, From Geeks To Geeks.

Java > Open Source Codes > java > net > BindException


1 /*
2  * @(#)BindException.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 bind a
12  * socket to a local address and port. Typically, the port is
13  * in use, or the requested local address could not be assigned.
14  *
15  * @since JDK1.1
16  */

17
18 public class BindException extends SocketException JavaDoc {
19
20     /**
21      * Constructs a new BindException with the specified detail
22      * message as to why the bind 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 BindException(String JavaDoc msg) {
28     super(msg);
29     }
30
31     /**
32      * Construct a new BindException with no detailed message.
33      */

34     public BindException() {}
35 }
36
Popular Tags