Class FTPException

java.lang.Object
java.lang.Throwable
java.lang.Exception
com.enterprisedt.net.ftp.FTPException
All Implemented Interfaces:
Serializable
Direct Known Subclasses:
FTPConnectionClosedException, FTPTransferCancelledException, MalformedReplyException

public class FTPException extends Exception
FTP specific exceptions
Version:
$Revision$
Author:
Bruce Blackshaw
See Also:
  • Field Details

  • Constructor Details

    • FTPException

      public FTPException(String msg)
      Constructor. Delegates to super.
      Parameters:
      msg - Message that the user will be able to retrieve
    • FTPException

      public FTPException(String msg, String replyCode)
      Constructor. Permits setting of reply code
      Parameters:
      msg - message that the user will be able to retrieve
      replyCode - string form of reply code
    • FTPException

      public FTPException(FTPReply reply)
      Constructor. Permits setting of reply code
      Parameters:
      reply - reply object
  • Method Details

    • getReplyCode

      public int getReplyCode()
      Get the reply code if it exists
      Returns:
      reply if it exists, -1 otherwise
    • toString

      public String toString()
      Returns a short description of this exception
      Overrides:
      toString in class Throwable
      Returns:
      a string representation of this exception.