|
JavaTM Platform Standard Ed. 6 |
|||||||||
| 上一个类 下一个类 | 框架 无框架 | |||||||||
| 摘要: 嵌套 | 字段 | 构造方法 | 方法 | 详细信息: 字段 | 构造方法 | 方法 | |||||||||
java.lang.Objectjava.lang.Throwable
java.lang.Exception
java.io.IOException
public class IOException
当发生某种 I/O 异常时,抛出此异常。此类是失败或中断的 I/O 操作生成的异常的通用类。
InputStream,
OutputStream,
序列化表格| 构造方法摘要 | |
|---|---|
IOException()
构造一个 IOException,使用 null 作为其错误详细消息。 |
|
IOException(String message)
构造带指定详细消息的 IOException。 |
|
IOException(String message,
Throwable cause)
构造带有指定详细消息和 cause 的 IOException。 |
|
IOException(Throwable cause)
构造一个 IOException,使其具有指定的 cause 以及详细消息 (cause==null ? null : cause.toString())(通常包含类和 cause 的详细消息)。 |
|
| 方法摘要 |
|---|
| 从类 java.lang.Throwable 继承的方法 |
|---|
fillInStackTrace, getCause, getLocalizedMessage, getMessage, getStackTrace, initCause, printStackTrace, printStackTrace, printStackTrace, setStackTrace, toString |
| 从类 java.lang.Object 继承的方法 |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
| 构造方法详细信息 |
|---|
public IOException()
IOException,使用 null 作为其错误详细消息。
public IOException(String message)
IOException。
message - 详细消息(保存此消息,以便 Throwable.getMessage() 方法稍后获得该消息)
public IOException(String message,
Throwable cause)
IOException。
注意,关联 cause 的详细消息不会 自动合并到此异常的详细消息中。
message - 详细消息(保存此消息,以便 Throwable.getMessage() 方法稍后获得该消息)cause - cause(保存此 cause,以便 Throwable.getCause() 方法稍后获得它)。(允许使用 null 值,它表示 cause 不存在或未知。)public IOException(Throwable cause)
IOException,使其具有指定的 cause 以及详细消息 (cause==null ? null : cause.toString())(通常包含类和 cause 的详细消息)。对于与其他 throwable 的包装器没有多大差别的 IO 异常,此构造方法很有用。
cause - cause(保存此 cause,以便 Throwable.getCause() 方法稍后获得它)。(允许使用 null 值,它表示 cause 不存在或未知。)
|
JavaTM Platform Standard Ed. 6 |
|||||||||
| 上一个类 下一个类 | 框架 无框架 | |||||||||
| 摘要: 嵌套 | 字段 | 构造方法 | 方法 | 详细信息: 字段 | 构造方法 | 方法 | |||||||||
版权所有 2007 Sun Microsystems, Inc. 保留所有权利。 请遵守许可证条款。另请参阅文档重新分发政策。