it.sauronsoftware.ftp4j
Class FTPException
java.lang.Object
java.lang.Throwable
java.lang.Exception
it.sauronsoftware.ftp4j.FTPException
- All Implemented Interfaces:
- java.io.Serializable
public class FTPException
- extends java.lang.Exception
This class helps in represent FTP error codes and messages.
- Author:
- Carlo Pelliccia
- See Also:
- Serialized Form
Method Summary |
int |
getCode()
Returns the code of the occurred FTP error. |
java.lang.String |
getMessage()
Returns the message of the occurred FTP error. |
java.lang.String |
toString()
|
Methods inherited from class java.lang.Throwable |
fillInStackTrace, getCause, getLocalizedMessage, getStackTrace, initCause, printStackTrace, printStackTrace, printStackTrace, setStackTrace |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
FTPException
public FTPException(int code)
FTPException
public FTPException(int code,
java.lang.String message)
FTPException
public FTPException(FTPReply reply)
getCode
public int getCode()
- Returns the code of the occurred FTP error.
- Returns:
- The code of the occurred FTP error.
getMessage
public java.lang.String getMessage()
- Returns the message of the occurred FTP error.
- Overrides:
getMessage
in class java.lang.Throwable
- Returns:
- The message of the occurred FTP error.
toString
public java.lang.String toString()
- Overrides:
toString
in class java.lang.Throwable