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
018package org.apache.commons.net;
019
020import java.io.IOException;
021
022/**
023 * This exception is used to indicate that the reply from a server could not be interpreted. Most of the NetComponents classes attempt to be as lenient as
024 * possible when receiving server replies. Many server implementations deviate from IETF protocol specifications, making it necessary to be as flexible as
025 * possible. However, there will be certain situations where it is not possible to continue an operation because the server reply could not be interpreted in a
026 * meaningful manner. In these cases, a MalformedServerReplyException should be thrown.
027 */
028
029public class MalformedServerReplyException extends IOException {
030
031    private static final long serialVersionUID = 6006765264250543945L;
032
033    /** Constructs a MalformedServerReplyException with no message */
034    public MalformedServerReplyException() {
035    }
036
037    /**
038     * Constructs a MalformedServerReplyException with a specified message.
039     *
040     * @param message The message explaining the reason for the exception.
041     */
042    public MalformedServerReplyException(final String message) {
043        super(message);
044    }
045
046}