org.apache.commons.io

Class IOExceptionWithCause


public class IOExceptionWithCause
extends IOException

Subclasses IOException with the Throwable constructors missing before Java 6. If you are using Java 6, consider this class deprecated and use IOException.
Version:
$Id$
Author:
Apache Commons IO
Since:
Commons IO 1.4

Field Summary

private static long
serialVersionUID
Defines the serial version UID.

Constructor Summary

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

Field Details

serialVersionUID

private static final long serialVersionUID
Defines the serial version UID.
Field Value:
1L

Constructor Details

IOExceptionWithCause

public IOExceptionWithCause(String message,
                            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 getMessage())
cause - the cause (see getCause()). A null value is allowed.

IOExceptionWithCause

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.

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

Copyright (c) 2002-2008 Apache Software Foundation