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.ftp;
17:
18: import java.io.IOException;
19:
20: /***
21: * FTPConnectionClosedException is used to indicate the premature or
22: * unexpected closing of an FTP connection resulting from a
23: * {@link org.apache.commons.net.ftp.FTPReply#SERVICE_NOT_AVAILABLE FTPReply.SERVICE_NOT_AVAILABLE }
24: * response (FTP reply code 421) to a
25: * failed FTP command. This exception is derived from IOException and
26: * therefore may be caught either as an IOException or specifically as an
27: * FTPConnectionClosedException.
28: * <p>
29: * <p>
30: * @author Daniel F. Savarese
31: * @see FTP
32: * @see FTPClient
33: ***/
34:
35: public class FTPConnectionClosedException extends IOException {
36:
37: /*** Constructs a FTPConnectionClosedException with no message ***/
38: public FTPConnectionClosedException() {
39: super ();
40: }
41:
42: /***
43: * Constructs a FTPConnectionClosedException with a specified message.
44: * <p>
45: * @param message The message explaining the reason for the exception.
46: ***/
47: public FTPConnectionClosedException(String message) {
48: super(message);
49: }
50:
51: }
|