org.openide.util.io
Class SafeException

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
                  extended by org.openide.util.io.SafeException
All Implemented Interfaces:
java.io.Serializable

public class SafeException
extends FoldingIOException

Special IOException that is used to signal that the write operation failed but the underlaying stream is not corrupted and can be used for next operations.

Author:
Jaroslav Tulach, Jesse Glick
See Also:
Serialized Form

Constructor Summary
SafeException(java.lang.Exception ex)
          Default constructor.
 
Method Summary
 java.lang.Throwable getCause()
           
 java.lang.Exception getException()
           
 
Methods inherited from class org.openide.util.io.FoldingIOException
getLocalizedMessage, printStackTrace, printStackTrace, printStackTrace, toString
 
Methods inherited from class java.lang.Throwable
fillInStackTrace, getMessage, getStackTrace, initCause, setStackTrace
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

SafeException

public SafeException(java.lang.Exception ex)
Default constructor.

Method Detail

getException

public java.lang.Exception getException()
Returns:
the encapsulated exception.

getCause

public java.lang.Throwable getCause()
Overrides:
getCause in class java.lang.Throwable