it.sauronsoftware.ftp4j
Class FTPException

java.lang.Object
  extended by java.lang.Throwable
      extended by java.lang.Exception
          extended by 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

Constructor Summary
FTPException(FTPReply reply)
           
FTPException(int code)
           
FTPException(int code, java.lang.String message)
           
 
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
 

Constructor Detail

FTPException

public FTPException(int code)

FTPException

public FTPException(int code,
                    java.lang.String message)

FTPException

public FTPException(FTPReply reply)
Method Detail

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