org.archive.net
Class FTPException

java.lang.Object
  extended by java.lang.Throwable
      extended by java.lang.Exception
          extended by java.io.IOException
              extended by org.archive.net.FTPException
All Implemented Interfaces:
java.io.Serializable

public class FTPException
extends java.io.IOException

Indicates that a FTP operation failed due to a protocol violation. For instance, if authentication fails.

Author:
pjack
See Also:
Serialized Form

Constructor Summary
FTPException(int code)
          Constructs a new FTPException.
 
Method Summary
 int getReplyCode()
          Returns the error code from the FTP server.
 
Methods inherited from class java.lang.Throwable
fillInStackTrace, getCause, getLocalizedMessage, getMessage, getStackTrace, initCause, printStackTrace, printStackTrace, printStackTrace, setStackTrace, toString
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

FTPException

public FTPException(int code)
Constructs a new FTPException.

Parameters:
code - the error code from the FTP server
Method Detail

getReplyCode

public int getReplyCode()
Returns the error code from the FTP server.

Returns:
the error code from the FTP server


Copyright © 2003-2008 Internet Archive. All Rights Reserved.