java.io
public class: IOException [javadoc |
source]
java.lang.Object
java.lang.Throwable
java.lang.Exception
java.io.IOException
All Implemented Interfaces:
Serializable
Signals a general, I/O-related error. Error details may be specified when
calling the constructor, as usual. Note there are also several subclasses of
this class for more specific error situations, such as
FileNotFoundException or
EOFException .
| Constructor: |
public IOException() {
super();
}
Constructs a new {@code IOException} with its stack trace filled in. |
public IOException(String detailMessage) {
super(detailMessage);
}
Constructs a new {@code IOException} with its stack trace and detail
message filled in. Parameters:
detailMessage -
the detail message for this exception.
|
public IOException(Throwable cause) {
super(cause == null ? null : cause.toString(), cause);
}
Constructs a new instance of this class with its detail cause filled in. Parameters:
cause -
The detail cause for the exception.
- since:
1.6 -
|
public IOException(String message,
Throwable cause) {
super(message, cause);
}
Constructs a new instance of this class with detail message and cause
filled in. Parameters:
message -
The detail message for the exception.
cause -
The detail cause for the exception.
- since:
1.6 -
|
| Methods from java.lang.Throwable: |
|---|
|
fillInStackTrace, getCause, getLocalizedMessage, getMessage, getStackTrace, initCause, printStackTrace, printStackTrace, printStackTrace, setStackTrace, toString |
| Methods from java.lang.Object: |
|---|
|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |