org.apache.tika.io
Class IOExceptionWithCause

java.lang.Object
  extended by java.lang.Throwable
      extended by java.lang.Exception
          extended by java.io.IOException
              extended by org.apache.tika.io.IOExceptionWithCause
All Implemented Interfaces:
java.io.Serializable
Direct Known Subclasses:
TaggedIOException

public class IOExceptionWithCause
extends java.io.IOException

Subclasses IOException with the Throwable constructors missing before Java 6. If you are using Java 6, consider this class deprecated and use IOException.

Since:
Apache Tika 0.4, copied from Commons IO 1.4
Author:
Apache Commons IO
See Also:
Serialized Form

Constructor Summary
IOExceptionWithCause(java.lang.String message, java.lang.Throwable cause)
          Constructs a new instance with the given message and cause.
IOExceptionWithCause(java.lang.Throwable cause)
          Constructs a new instance with the given cause.
 
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

IOExceptionWithCause

public IOExceptionWithCause(java.lang.String message,
                            java.lang.Throwable cause)
Constructs a new instance with the given message and cause.

As specified in Throwable, the message in the given cause is not used in this instance's message.

Parameters:
message - the message (see Throwable.getMessage())
cause - the cause (see Throwable.getCause()). A null value is allowed.

IOExceptionWithCause

public IOExceptionWithCause(java.lang.Throwable cause)
Constructs a new instance with the given cause.

The message is set to cause==null ? null : cause.toString(), which by default contains the class and message of cause. This constructor is useful for call sites that just wrap another throwable.

Parameters:
cause - the cause (see Throwable.getCause()). A null value is allowed.


Copyright © 2007-2010 The Apache Software Foundation. All Rights Reserved.