|
JavaTM 2 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 2 Platform Standard Ed. 6 |
|||||||||
| 上一個類別 下一個類別 | 框架 無框架 | |||||||||
| 摘要: 巢狀 | 欄位 | 建構子 | 方法 | 詳細資訊: 欄位 | 建構子 | 方法 | |||||||||
版權所有 2008 Sun Microsystems, Inc. 保留所有權利。請遵守GNU General Public License, version 2 only。