Package org.apache.commons.io
Class IOExceptionWithCause
- java.lang.Object
-
- java.lang.Throwable
-
- java.lang.Exception
-
- java.io.IOException
-
- org.apache.commons.io.IOExceptionWithCause
-
- All Implemented Interfaces:
java.io.Serializable
- Direct Known Subclasses:
TaggedIOException
@Deprecated public class IOExceptionWithCause extends java.io.IOExceptionDeprecated.(since 2.5) useIOExceptioninsteadSubclasses IOException with theThrowableconstructors missing before Java 6.- Since:
- 1.4
- See Also:
- Serialized Form
-
-
Constructor Summary
Constructors Constructor Description IOExceptionWithCause(java.lang.String message, java.lang.Throwable cause)Deprecated.Constructs a new instance with the given message and cause.IOExceptionWithCause(java.lang.Throwable cause)Deprecated.Constructs a new instance with the given cause.
-
-
-
Constructor Detail
-
IOExceptionWithCause
public IOExceptionWithCause(java.lang.String message, java.lang.Throwable cause)Deprecated.Constructs a new instance with the given message and cause.As specified in
Throwable, the message in the givencauseis not used in this instance's message.- Parameters:
message- the message (seeThrowable.getMessage())cause- the cause (seeThrowable.getCause()). Anullvalue is allowed.
-
IOExceptionWithCause
public IOExceptionWithCause(java.lang.Throwable cause)
Deprecated.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 ofcause. This constructor is useful for call sites that just wrap another throwable.- Parameters:
cause- the cause (seeThrowable.getCause()). Anullvalue is allowed.
-
-