FileDocCategorySizeDatePackage
IOExceptionWithCause.javaAPI DocAndroid 1.5 API2572Wed May 06 22:42:46 BST 2009org.apache.commons.io

IOExceptionWithCause

public class IOExceptionWithCause extends IOException
Subclasses IOException with the {@link Throwable} constructors missing before Java 6. If you are using Java 6, consider this class deprecated and use {@link IOException}.
author
Apache Commons IO
version
$Id$
since
Commons IO 1.4

Fields Summary
private static final long
serialVersionUID
Defines the serial version UID.
Constructors Summary
public IOExceptionWithCause(String message, Throwable cause)
Constructs a new instance with the given message and cause.

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

param
message the message (see {@link #getMessage()})
param
cause the cause (see {@link #getCause()}). A null value is allowed.


                                                                                 
         
        super(message);
        this.initCause(cause);
    
public IOExceptionWithCause(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.

param
cause the cause (see {@link #getCause()}). A null value is allowed.

        super(cause == null ? null : cause.toString());
        this.initCause(cause);
    
Methods Summary