org.finj
Class FTPException

java.lang.Object
java.lang.Throwable
java.lang.Exception
java.lang.RuntimeException
org.finj.FTPException
- All Implemented Interfaces:
- java.io.Serializable
- public class FTPException
- extends java.lang.RuntimeException
Exceptions thrown by an instance of org.finj.FTPClient
built around a org.finj.FTPReply, when the server refuses
the actipon the org.finj.FTPClient was supposed to
perform.
- Version:
- $Id$
| Nested classes inherited from class java.lang.Throwable |
|
| Fields inherited from class java.lang.Throwable |
|
|
Constructor Summary |
private |
FTPException()
Defeat parameterless constructor |
|
FTPException(java.lang.Object source,
int code,
java.lang.String message)
Constructs a new instance of this class that
will carry the org.finj.FTPReply code and
the original message received from
the FTP server. |
|
Method Summary |
int |
getCode()
Returns the org.finj.FTPReply code produced by the
FTP server that triggered this Exception. |
java.lang.String |
getMessage()
Returns the original message produced by the FTP server
that triggered this Exception. |
java.lang.Object |
getSource()
Returns the Object that throwed this
Exception. |
source
private java.lang.Object source
Object that throwed this Exception.
- Since:
- v1.0
code
private int code
- One of the
org.finj.FTPReply error codes.
- Since:
- v1.0
message
private java.lang.String message
- Original reply from the FTP server that trigered this
Exception.
- Since:
- v1.0
FTPException
private FTPException()
- Defeat parameterless constructor
- Since:
- v1.0
FTPException
public FTPException(java.lang.Object source,
int code,
java.lang.String message)
- Constructs a new instance of this class that
will carry the
org.finj.FTPReply code and
the original message received from
the FTP server.
- Since:
- v1.0
getSource
public java.lang.Object getSource()
- Returns the
Object that throwed this
Exception.
- Since:
- v1.0
getCode
public int getCode()
- Returns the
org.finj.FTPReply code produced by the
FTP server that triggered this Exception.
- Since:
- v1.0
getMessage
public java.lang.String getMessage()
- Returns the original message produced by the FTP server
that triggered this
Exception.
- Since:
- v1.0