Class FTPFileSystemException

    • Constructor Detail

      • FTPFileSystemException

        public FTPFileSystemException​(int replyCode,
                                      String replyString)
        Creates a new FTPFileSystemException. This constructor should be used when an operation not involving files fails.
        Parameters:
        replyCode - The integer value of the reply code of the last FTP reply that triggered this exception.
        replyString - The entire text from the last FTP response that triggered this exception. It will be used as the exception's reason.
      • FTPFileSystemException

        public FTPFileSystemException​(String file,
                                      int replyCode,
                                      String replyString)
        Creates a new FTPFileSystemException. This constructor should be used when an operation involving one file fails.
        Parameters:
        file - A string identifying the file, or null if not known.
        replyCode - The integer value of the reply code of the last FTP reply that triggered this exception.
        replyString - The entire text from the last FTP response that triggered this exception. It will be used as the exception's reason.
      • FTPFileSystemException

        public FTPFileSystemException​(String file,
                                      String other,
                                      int replyCode,
                                      String replyString)
        Creates a new FTPFileSystemException. This constructor should be used when an operation involving two files fails.
        Parameters:
        file - A string identifying the file, or null if not known.
        other - A string identifying the other file, or null if there isn't another file or if not known.
        replyCode - The integer value of the reply code of the last FTP reply that triggered this exception.
        replyString - The entire text from the last FTP response that triggered this exception. It will be used as the exception's reason.
    • Method Detail

      • getReplyCode

        public int getReplyCode()
        Description copied from interface: FTPResponse
        Returns the reply code of the FTP response.
        Specified by:
        getReplyCode in interface FTPResponse
        Returns:
        The integer value of the reply code of the FTP response.
      • getReplyString

        public String getReplyString()
        Description copied from interface: FTPResponse
        Returns the entire text from the FTP response.
        Specified by:
        getReplyString in interface FTPResponse
        Returns:
        The entire text from the FTP response.