Docjar: A Java Source and Docuemnt Enginecom.*    java.*    javax.*    org.*    all    new    plug-in

Quick Search    Search Deep

org.finj
Class FTPException  view FTPException download FTPException.java

java.lang.Object
  extended byjava.lang.Throwable
      extended byjava.lang.Exception
          extended byjava.lang.RuntimeException
              extended byorg.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 Class Summary
 
Nested classes inherited from class java.lang.Throwable
 
Field Summary
private  int code
          One of the org.finj.FTPReply error codes.
private  java.lang.String message
          Original reply from the FTP server that trigered this Exception.
private  java.lang.Object source
          Object that throwed this Exception.
 
Fields inherited from class java.lang.RuntimeException
 
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.
 
Methods inherited from class java.lang.Throwable
fillInStackTrace, getCause, getLocalizedMessage, getStackTrace, initCause, printStackTrace, printStackTrace, printStackTrace, setStackTrace, toString
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Field Detail

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
Constructor Detail

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
Method Detail

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