org.apache.ftpserver.ftplet
Class FtpException

java.lang.Object
  extended by java.lang.Throwable
      extended by java.lang.Exception
          extended by org.apache.ftpserver.ftplet.FtpException
All Implemented Interfaces:
java.io.Serializable
Direct Known Subclasses:
AuthenticationFailedException, DataConnectionException

public class FtpException
extends java.lang.Exception

Ftplet exception class.

Version:
$Rev: 711368 $, $Date: 2008-11-04 21:02:43 +0100 (Tue, 04 Nov 2008) $
Author:
The Apache MINA Project (dev@mina.apache.org)
See Also:
Serialized Form

Constructor Summary
FtpException()
          Default constructor.
FtpException(java.lang.String msg)
          Constructs a FtpException object with a message.
FtpException(java.lang.String msg, java.lang.Throwable th)
          Constructs a BaseException object with a Throwable cause.
FtpException(java.lang.Throwable th)
          Constructs a FtpException object with a Throwable cause.
 
Method Summary
 java.lang.Throwable getRootCause()
          Get the root cause.
 void printStackTrace()
          Print stack trace.
 void printStackTrace(java.io.PrintStream ps)
          Print stack trace.
 void printStackTrace(java.io.PrintWriter pw)
          Print stack trace.
 
Methods inherited from class java.lang.Throwable
fillInStackTrace, getCause, getLocalizedMessage, getMessage, getStackTrace, initCause, setStackTrace, toString
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

FtpException

public FtpException()
Default constructor.


FtpException

public FtpException(java.lang.String msg)
Constructs a FtpException object with a message.

Parameters:
msg - a description of the exception

FtpException

public FtpException(java.lang.Throwable th)
Constructs a FtpException object with a Throwable cause.

Parameters:
th - the original cause

FtpException

public FtpException(java.lang.String msg,
                    java.lang.Throwable th)
Constructs a BaseException object with a Throwable cause.

Parameters:
msg - A description of the exception
th - The original cause
Method Detail

getRootCause

public java.lang.Throwable getRootCause()
Get the root cause.

Returns:
The root cause

printStackTrace

public void printStackTrace(java.io.PrintWriter pw)
Print stack trace.

Overrides:
printStackTrace in class java.lang.Throwable

printStackTrace

public void printStackTrace(java.io.PrintStream ps)
Print stack trace.

Overrides:
printStackTrace in class java.lang.Throwable

printStackTrace

public void printStackTrace()
Print stack trace.

Overrides:
printStackTrace in class java.lang.Throwable


Copyright © 2003-2011 Apache Software Foundation. All Rights Reserved.