edtFTPj

com.enterprisedt
Class BaseIOException

java.lang.Object
  extended by java.lang.Throwable
      extended by java.lang.Exception
          extended by java.io.IOException
              extended by com.enterprisedt.BaseIOException
All Implemented Interfaces:
Serializable

public class BaseIOException
extends IOException

Extension of java.io.IOException which adds "cause" functionality. This replicates the behaviour that is already present in JDK 1.4 or better.

Author:
Hans Andersen
See Also:
Serialized Form

Constructor Summary
BaseIOException()
          Creates a BaseIOException with no message or cause.
BaseIOException(String message)
          Creates a BaseIOException with the given message.
BaseIOException(String message, Throwable cause)
          Creates a BaseIOException with the given cause.
BaseIOException(Throwable cause)
          Creates a BaseIOException with the given cause.
 
Method Summary
 Throwable getCause()
          Returns the cause of this exception.
 Throwable getInnerThrowable()
          Returns the cause of this exception (same as getCause).
 Throwable initCause(Throwable cause)
          Initializes the cause.
 
Methods inherited from class java.lang.Throwable
fillInStackTrace, getLocalizedMessage, getMessage, getStackTrace, printStackTrace, printStackTrace, printStackTrace, setStackTrace, toString
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

BaseIOException

public BaseIOException()
Creates a BaseIOException with no message or cause.


BaseIOException

public BaseIOException(String message)
Creates a BaseIOException with the given message.

Parameters:
message - Exception message

BaseIOException

public BaseIOException(Throwable cause)
Creates a BaseIOException with the given cause.

Parameters:
cause - Throwable which caused this exception to be thrown.

BaseIOException

public BaseIOException(String message,
                       Throwable cause)
Creates a BaseIOException with the given cause.

Parameters:
message - Exception message
cause - Throwable which caused this exception to be thrown.
Method Detail

getCause

public Throwable getCause()
Returns the cause of this exception. Included for JDK1.4+ compatibility.

Overrides:
getCause in class Throwable

getInnerThrowable

public Throwable getInnerThrowable()
Returns the cause of this exception (same as getCause). This has a different name from JDK1.4's Exception.getCause in order to prevent cross-over behaviour.


initCause

public Throwable initCause(Throwable cause)
Initializes the cause.

Overrides:
initCause in class Throwable
Parameters:
cause - Throwable which caused this exception to be thrown.

edtFTPj

Copyright © 2000-2007 Enterprise Distributed Technologies. All Rights Reserved.