public class FTPFileSystemException extends FileSystemException implements FTPResponse
Constructor and Description |
---|
FTPFileSystemException(int replyCode,
String replyString)
Creates a new
FTPFileSystemException . |
FTPFileSystemException(String file,
int replyCode,
String replyString)
Creates a new
FTPFileSystemException . |
FTPFileSystemException(String file,
String other,
int replyCode,
String replyString)
Creates a new
FTPFileSystemException . |
Modifier and Type | Method and Description |
---|---|
int |
getReplyCode()
Returns the reply code of the FTP response.
|
String |
getReplyString()
Returns the entire text from the FTP response.
|
getFile, getMessage, getOtherFile, getReason
addSuppressed, fillInStackTrace, getCause, getLocalizedMessage, getStackTrace, getSuppressed, initCause, printStackTrace, printStackTrace, printStackTrace, setStackTrace, toString
public FTPFileSystemException(int replyCode, String replyString)
FTPFileSystemException
.
This constructor should be used when an operation not involving files fails.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.public FTPFileSystemException(String file, int replyCode, String replyString)
FTPFileSystemException
.
This constructor should be used when an operation involving one file fails.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.public FTPFileSystemException(String file, String other, int replyCode, String replyString)
FTPFileSystemException
.
This constructor should be used when an operation involving two files fails.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.public int getReplyCode()
FTPResponse
getReplyCode
in interface FTPResponse
public String getReplyString()
FTPResponse
getReplyString
in interface FTPResponse
Copyright © 2016–2024. All rights reserved.