KickJava   Java API By Example, From Geeks To Geeks.

Java > Open Source Codes > org > apache > commons > net > MalformedServerReplyException


1 /*
2  * Copyright 2001-2005 The Apache Software Foundation
3  *
4  * Licensed under the Apache License, Version 2.0 (the "License");
5  * you may not use this file except in compliance with the License.
6  * You may obtain a copy of the License at
7  *
8  * http://www.apache.org/licenses/LICENSE-2.0
9  *
10  * Unless required by applicable law or agreed to in writing, software
11  * distributed under the License is distributed on an "AS IS" BASIS,
12  * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
13  * See the License for the specific language governing permissions and
14  * limitations under the License.
15  */

16 package org.apache.commons.net;
17
18 import java.io.IOException JavaDoc;
19
20 /***
21  * This exception is used to indicate that the reply from a server
22  * could not be interpreted. Most of the NetComponents classes attempt
23  * to be as lenient as possible when receiving server replies. Many
24  * server implementations deviate from IETF protocol specifications, making
25  * it necessary to be as flexible as possible. However, there will be
26  * certain situations where it is not possible to continue an operation
27  * because the server reply could not be interpreted in a meaningful manner.
28  * In these cases, a MalformedServerReplyException should be thrown.
29  * <p>
30  * <p>
31  * @author Daniel F. Savarese
32  ***/

33
34 public class MalformedServerReplyException extends IOException JavaDoc
35 {
36
37     /*** Constructs a MalformedServerReplyException with no message ***/
38     public MalformedServerReplyException()
39     {
40         super();
41     }
42
43     /***
44      * Constructs a MalformedServerReplyException with a specified message.
45      * <p>
46      * @param message The message explaining the reason for the exception.
47      ***/

48     public MalformedServerReplyException(String JavaDoc message)
49     {
50         super(message);
51     }
52
53 }
54
Popular Tags