01: /*
02: * Copyright 2001-2005 The Apache Software Foundation
03: *
04: * Licensed under the Apache License, Version 2.0 (the "License");
05: * you may not use this file except in compliance with the License.
06: * You may obtain a copy of the License at
07: *
08: * http://www.apache.org/licenses/LICENSE-2.0
09: *
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;
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 {
35:
36: /*** Constructs a MalformedServerReplyException with no message ***/
37: public MalformedServerReplyException() {
38: super ();
39: }
40:
41: /***
42: * Constructs a MalformedServerReplyException with a specified message.
43: * <p>
44: * @param message The message explaining the reason for the exception.
45: ***/
46: public MalformedServerReplyException(String message) {
47: super(message);
48: }
49:
50: }
|