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