public class FTPNotDirectoryException extends NotDirectoryException implements FTPResponse
Constructor and Description |
---|
FTPNotDirectoryException(String file,
int replyCode,
String replyString)
Creates a new
FTPNotLinkException . |
Modifier and Type | Method and Description |
---|---|
String |
getMessage() |
String |
getReason() |
int |
getReplyCode()
Returns the reply code of the FTP response.
|
String |
getReplyString()
Returns the entire text from the FTP response.
|
getFile, getOtherFile
addSuppressed, fillInStackTrace, getCause, getLocalizedMessage, getStackTrace, getSuppressed, initCause, printStackTrace, printStackTrace, printStackTrace, setStackTrace, toString
public FTPNotDirectoryException(String file, int replyCode, String replyString)
FTPNotLinkException
.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 int getReplyCode()
FTPResponse
getReplyCode
in interface FTPResponse
public String getReplyString()
FTPResponse
getReplyString
in interface FTPResponse
public String getReason()
getReason
in class FileSystemException
public String getMessage()
getMessage
in class FileSystemException
Copyright © 2016–2024. All rights reserved.