com.enterprisedt.net.ftp
Class FTPException

java.lang.Object
  |
  +--java.lang.Throwable
        |
        +--java.lang.Exception
              |
              +--com.enterprisedt.net.ftp.FTPException
All Implemented Interfaces:
java.io.Serializable

public class FTPException
extends java.lang.Exception

FTP specific exceptions

Version:
$Revision: 1.4 $
Author:
Bruce Blackshaw
See Also:
Serialized Form

Constructor Summary
FTPException(java.lang.String msg)
          Constructor.
FTPException(java.lang.String msg, java.lang.String replyCode)
          Constructor.
 
Method Summary
 int getReplyCode()
          Get the reply code if it exists
 
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(java.lang.String msg)
Constructor. Delegates to super.

Parameters:
msg - Message that the user will be able to retrieve

FTPException

public FTPException(java.lang.String msg,
                    java.lang.String replyCode)
Constructor. Permits setting of reply code

Parameters:
msg - message that the user will be able to retrieve
replyCode - string form of reply code
Method Detail

getReplyCode

public int getReplyCode()
Get the reply code if it exists

Returns:
reply if it exists, -1 otherwise


Copyright (c) 2001-2003 Enterprise Distributed Technologies Ltd. All Rights Reserved.