ix.util
Class RethrownIOException

java.lang.Object
  extended by java.lang.Throwable
      extended by java.lang.Exception
          extended by java.lang.RuntimeException
              extended by ix.util.RethrownException
                  extended by ix.util.RethrownIOException
All Implemented Interfaces:
java.io.Serializable

public class RethrownIOException
extends RethrownException

An unchecked exception used to wrap IOExceptions when they're rethrown. This is a separate subclass because it's so common a case and may call for different handling.

See Also:
Serialized Form

Constructor Summary
RethrownIOException(java.lang.String messagePrefix, java.lang.Throwable cause)
          Constructs an exception with the specified cause and a message formed by concatenating the prefix, followed by a space, to the result of calling Debug.describeException(Throwable) on the cause.
RethrownIOException(java.lang.Throwable cause)
          Constructs an exception with a description of the cause as its message.
 
Method Summary
 
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
 

Constructor Detail

RethrownIOException

public RethrownIOException(java.lang.Throwable cause)
Constructs an exception with a description of the cause as its message.

See Also:
Debug.describeException(Throwable)

RethrownIOException

public RethrownIOException(java.lang.String messagePrefix,
                           java.lang.Throwable cause)
Constructs an exception with the specified cause and a message formed by concatenating the prefix, followed by a space, to the result of calling Debug.describeException(Throwable) on the cause.