1. /*
  2. * Copyright 2001-2004 The Apache Software Foundation
  3. *
  4. * Licensed under the Apache License, Version 2.0 (the "License");
  5. * you may not use this file except in compliance with the License.
  6. * You may obtain a copy of the License at
  7. *
  8. * http://www.apache.org/licenses/LICENSE-2.0
  9. *
  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. import java.io.IOException;
  18. /***
  19. * FTPConnectionClosedException is used to indicate the premature or
  20. * unexpected closing of an FTP connection resulting from a
  21. * <a href="org.apache.commons.net.ftp.FTPReply.html#SERVICE_NOT_AVAILABLE">
  22. * FTPReply.SERVICE_NOT_AVAILABLE </a> response (FTP reply code 421) to a
  23. * failed FTP command. This exception is derived from IOException and
  24. * therefore may be caught either as an IOException or specifically as an
  25. * FTPConnectionClosedException.
  26. * <p>
  27. * <p>
  28. * @author Daniel F. Savarese
  29. * @see FTP
  30. * @see FTPClient
  31. ***/
  32. public class FTPConnectionClosedException extends IOException
  33. {
  34. /*** Constructs a FTPConnectionClosedException with no message ***/
  35. public FTPConnectionClosedException()
  36. {
  37. super();
  38. }
  39. /***
  40. * Constructs a FTPConnectionClosedException with a specified message.
  41. * <p>
  42. * @param message The message explaining the reason for the exception.
  43. ***/
  44. public FTPConnectionClosedException(String message)
  45. {
  46. super(message);
  47. }
  48. }