org.netbeans.mdr.persistence
Class StorageIOException

java.lang.Object
  extended by java.lang.Throwable
      extended by java.lang.Exception
          extended by org.netbeans.mdr.persistence.StorageException
              extended by org.netbeans.mdr.persistence.StorageIOException
All Implemented Interfaces:
java.io.Serializable

public class StorageIOException
extends StorageException

This is thrown when an IO error occurs in the storage layer. The IOException is converted to a subclass of Storage Exception to maintain this simple rule: only StorageExceptions are thrown from the storage layer. A StorageIOException returns the stack trace information of the original IOException occurred, since this is far more useful than the stack trace of the point where the exception was converted.

See Also:
Serialized Form

Constructor Summary
StorageIOException(java.io.IOException err)
          this constructs a StorageIOException from an IOException
 
Method Summary
 java.lang.String getLocalizedMessage()
          return the original IOException's localized message
 java.lang.String getMessage()
          return the original IOException's message
 void printStackTrace()
          print the original IOException's stack trace
 void printStackTrace(java.io.PrintStream ps)
          print the original IOException's stack trace
 void printStackTrace(java.io.PrintWriter pw)
          print the original IOException's stack trace
 
Methods inherited from class java.lang.Throwable
fillInStackTrace, getCause, getStackTrace, initCause, setStackTrace, toString
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

StorageIOException

public StorageIOException(java.io.IOException err)
this constructs a StorageIOException from an IOException

Parameters:
err - the IOException
Method Detail

getMessage

public java.lang.String getMessage()
return the original IOException's message

Overrides:
getMessage in class java.lang.Throwable

getLocalizedMessage

public java.lang.String getLocalizedMessage()
return the original IOException's localized message

Overrides:
getLocalizedMessage in class java.lang.Throwable

printStackTrace

public void printStackTrace()
print the original IOException's stack trace

Overrides:
printStackTrace in class java.lang.Throwable

printStackTrace

public void printStackTrace(java.io.PrintStream ps)
print the original IOException's stack trace

Overrides:
printStackTrace in class java.lang.Throwable

printStackTrace

public void printStackTrace(java.io.PrintWriter pw)
print the original IOException's stack trace

Overrides:
printStackTrace in class java.lang.Throwable


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