org.apache.commons.net.ftp.parser
Class ParserInitializationException

java.lang.Object
  extended byjava.lang.Throwable
      extended byjava.lang.Exception
          extended byjava.lang.RuntimeException
              extended byorg.apache.commons.net.ftp.parser.ParserInitializationException
All Implemented Interfaces:
Serializable

public class ParserInitializationException
extends RuntimeException

This class encapsulates all errors that may be thrown by the process of an FTPFileEntryParserFactory creating and instantiating an FTPFileEntryParser.

See Also:
Serialized Form

Field Summary
private  Throwable rootCause
          Root exception that caused this to be thrown
 
Fields inherited from class java.lang.RuntimeException
 
Fields inherited from class java.lang.Throwable
 
Constructor Summary
ParserInitializationException(String message)
          Constucts a ParserInitializationException with just a message
ParserInitializationException(String message, Throwable rootCause)
          Constucts a ParserInitializationException with a message and a root cause.
 
Method Summary
 Throwable getRootCause()
          returns the root cause of this exception or null if no root cause was specified.
 
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
 

Field Detail

rootCause

private final Throwable rootCause
Root exception that caused this to be thrown

Constructor Detail

ParserInitializationException

public ParserInitializationException(String message)
Constucts a ParserInitializationException with just a message

Parameters:
message - Exception message

ParserInitializationException

public ParserInitializationException(String message,
                                     Throwable rootCause)
Constucts a ParserInitializationException with a message and a root cause.

Parameters:
message - Exception message
rootCause - root cause throwable that caused this to be thrown
Method Detail

getRootCause

public Throwable getRootCause()
returns the root cause of this exception or null if no root cause was specified.

Returns:
the root cause of this exception being thrown