org.globus.ftp.exception
Class FTPException

java.lang.Object
  extended by java.lang.Throwable
      extended by java.lang.Exception
          extended by org.globus.ftp.exception.FTPException
All Implemented Interfaces:
java.io.Serializable
Direct Known Subclasses:
ClientException, DataChannelException, FTPReplyParseException, PerfMarkerException, ServerException, UnexpectedReplyCodeException

public class FTPException
extends java.lang.Exception

Most exceptions used by ftp package are subclasses of FTPException and inherit its features:

See Also:
Serialized Form

Field Summary
protected  java.lang.Exception cause
           
protected  int code
           
protected  java.lang.String customMessage
           
static int UNSPECIFIED
           
 
Constructor Summary
FTPException(int code)
           
FTPException(int code, java.lang.String message)
           
 
Method Summary
 int getCode()
           
 java.lang.String getCodeExplanation(int code)
           
 java.lang.String getCustomMessage()
           
 java.lang.String getMessage()
           
 java.lang.Exception getRootCause()
          Retrieve the nested lower layer exception.
 void printStackTrace()
           
 void printStackTrace(java.io.PrintStream ps)
           
 void printStackTrace(java.io.PrintWriter pw)
           
 void setCode(int c)
           
 void setCustomMessage(java.lang.String m)
           
 void setRootCause(java.lang.Exception c)
           
 java.lang.String toString()
           
 
Methods inherited from class java.lang.Throwable
fillInStackTrace, getCause, getLocalizedMessage, getStackTrace, initCause, setStackTrace
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Field Detail

UNSPECIFIED

public static final int UNSPECIFIED
See Also:
Constant Field Values

code

protected int code

cause

protected java.lang.Exception cause

customMessage

protected java.lang.String customMessage
Constructor Detail

FTPException

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

FTPException

public FTPException(int code)
Method Detail

getCodeExplanation

public java.lang.String getCodeExplanation(int code)

setRootCause

public void setRootCause(java.lang.Exception c)

getRootCause

public java.lang.Exception getRootCause()
Retrieve the nested lower layer exception.


setCode

public void setCode(int c)

getCode

public int getCode()

setCustomMessage

public void setCustomMessage(java.lang.String m)

getCustomMessage

public java.lang.String getCustomMessage()

getMessage

public java.lang.String getMessage()
Overrides:
getMessage in class java.lang.Throwable

toString

public java.lang.String toString()
Overrides:
toString in class java.lang.Throwable

printStackTrace

public void printStackTrace()
Overrides:
printStackTrace in class java.lang.Throwable

printStackTrace

public void printStackTrace(java.io.PrintStream ps)
Overrides:
printStackTrace in class java.lang.Throwable

printStackTrace

public void printStackTrace(java.io.PrintWriter pw)
Overrides:
printStackTrace in class java.lang.Throwable