KickJava   Java API By Example, From Geeks To Geeks.

Java > Open Source Codes > java > net > ProtocolException


1 /*
2  * @(#)ProtocolException.java 1.17 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 import java.io.IOException JavaDoc;
11
12 /**
13  * Thrown to indicate that there is an error in the underlying
14  * protocol, such as a TCP error.
15  *
16  * @author Chris Warth
17  * @version 1.17, 11/17/05
18  * @since JDK1.0
19  */

20 public
21 class ProtocolException extends IOException JavaDoc {
22     /**
23      * Constructs a new <code>ProtocolException</code> with the
24      * specified detail message.
25      *
26      * @param host the detail message.
27      */

28     public ProtocolException(String JavaDoc host) {
29     super(host);
30     }
31     
32     /**
33      * Constructs a new <code>ProtocolException</code> with no detail message.
34      */

35     public ProtocolException() {
36     }
37 }
38
Popular Tags