001 /*
002 * Licensed to the Apache Software Foundation (ASF) under one or more
003 * contributor license agreements. See the NOTICE file distributed with
004 * this work for additional information regarding copyright ownership.
005 * The ASF licenses this file to You under the Apache License, Version 2.0
006 * (the "License"); you may not use this file except in compliance with
007 * the License. You may obtain a copy of the License at
008 *
009 * http://www.apache.org/licenses/LICENSE-2.0
010 *
011 * Unless required by applicable law or agreed to in writing, software
012 * distributed under the License is distributed on an "AS IS" BASIS,
013 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
014 * See the License for the specific language governing permissions and
015 * limitations under the License.
016 */
017
018 package org.apache.commons.net;
019
020 import java.io.IOException;
021
022 /***
023 * This exception is used to indicate that the reply from a server
024 * could not be interpreted. Most of the NetComponents classes attempt
025 * to be as lenient as possible when receiving server replies. Many
026 * server implementations deviate from IETF protocol specifications, making
027 * it necessary to be as flexible as possible. However, there will be
028 * certain situations where it is not possible to continue an operation
029 * because the server reply could not be interpreted in a meaningful manner.
030 * In these cases, a MalformedServerReplyException should be thrown.
031 * <p>
032 * <p>
033 * @author Daniel F. Savarese
034 ***/
035
036 public class MalformedServerReplyException extends IOException
037 {
038
039 /*** Constructs a MalformedServerReplyException with no message ***/
040 public MalformedServerReplyException()
041 {
042 super();
043 }
044
045 /***
046 * Constructs a MalformedServerReplyException with a specified message.
047 * <p>
048 * @param message The message explaining the reason for the exception.
049 ***/
050 public MalformedServerReplyException(String message)
051 {
052 super(message);
053 }
054
055 }