org.openide.util.io
Class FoldingIOException

java.lang.Object
  extended by java.lang.Throwable
      extended by java.lang.Exception
          extended by java.io.IOException
              extended by org.openide.util.io.FoldingIOException
All Implemented Interfaces:
java.io.Serializable
Direct Known Subclasses:
SafeException

public class FoldingIOException
extends java.io.IOException

Encapsulates an exception.

Author:
Ales Novak
See Also:
Serialized Form

Field Summary
(package private) static long serialVersionUID
           
 
Constructor Summary
FoldingIOException(java.lang.Throwable t)
          Deprecated. Better to create a new IOException and use its Throwable.initCause(java.lang.Throwable) method.
FoldingIOException(java.lang.Throwable t, java.lang.Object nothing)
          Constructor for SafeException which extends FoldingIOException and is not deprecated.
 
Method Summary
 java.lang.String getLocalizedMessage()
           
 void printStackTrace()
          Prints stack trace of the foreign exception
 void printStackTrace(java.io.PrintStream s)
          Prints stack trace of the foreign exception
 void printStackTrace(java.io.PrintWriter s)
          Prints stack trace of the foreign exception
 java.lang.String toString()
           
 
Methods inherited from class java.lang.Throwable
fillInStackTrace, getCause, getMessage, getStackTrace, initCause, setStackTrace
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Field Detail

serialVersionUID

static final long serialVersionUID
See Also:
Constant Field Values
Constructor Detail

FoldingIOException

@Deprecated
public FoldingIOException(java.lang.Throwable t)
Deprecated. Better to create a new IOException and use its Throwable.initCause(java.lang.Throwable) method.

Parameters:
t - a foreign folded Throwable

FoldingIOException

FoldingIOException(java.lang.Throwable t,
                   java.lang.Object nothing)
Constructor for SafeException which extends FoldingIOException and is not deprecated.

Method Detail

printStackTrace

public void printStackTrace()
Prints stack trace of the foreign exception

Overrides:
printStackTrace in class java.lang.Throwable

printStackTrace

public void printStackTrace(java.io.PrintStream s)
Prints stack trace of the foreign exception

Overrides:
printStackTrace in class java.lang.Throwable

printStackTrace

public void printStackTrace(java.io.PrintWriter s)
Prints stack trace of the foreign exception

Overrides:
printStackTrace in class java.lang.Throwable

toString

public java.lang.String toString()
Overrides:
toString in class java.lang.Throwable
Returns:
toString of the foreign exception

getLocalizedMessage

public java.lang.String getLocalizedMessage()
Overrides:
getLocalizedMessage in class java.lang.Throwable
Returns:
getLocalizedMessage of the foreign exception