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.ftp; 017 import java.io.IOException; 018 019 /*** 020 * FTPConnectionClosedException is used to indicate the premature or 021 * unexpected closing of an FTP connection resulting from a 022 * {@link org.apache.commons.net.ftp.FTPReply#SERVICE_NOT_AVAILABLE FTPReply.SERVICE_NOT_AVAILABLE } 023 * response (FTP reply code 421) to a 024 * failed FTP command. This exception is derived from IOException and 025 * therefore may be caught either as an IOException or specifically as an 026 * FTPConnectionClosedException. 027 * <p> 028 * <p> 029 * @author Daniel F. Savarese 030 * @see FTP 031 * @see FTPClient 032 ***/ 033 034 public class FTPConnectionClosedException extends IOException 035 { 036 037 /*** Constructs a FTPConnectionClosedException with no message ***/ 038 public FTPConnectionClosedException() 039 { 040 super(); 041 } 042 043 /*** 044 * Constructs a FTPConnectionClosedException with a specified message. 045 * <p> 046 * @param message The message explaining the reason for the exception. 047 ***/ 048 public FTPConnectionClosedException(String message) 049 { 050 super(message); 051 } 052 053 }