|
JavaTM 2 Platform Standard Ed. 6 |
|||||||||
| 上一個類別 下一個類別 | 框架 無框架 | |||||||||
| 摘要: 巢狀 | 欄位 | 建構子 | 方法 | 詳細資訊: 欄位 | 建構子 | 方法 | |||||||||
java.lang.Objectjava.lang.Throwable
java.lang.Exception
java.awt.print.PrinterException
java.awt.print.PrinterIOException
public class PrinterIOException
PrinterIOException 類別是 PrinterException 的子類別,用於指示在列印過程中發生了某種 IO 錯誤。
從 1.4 版本開始,此異常已經改進,以符合通用異常鏈機制。在建構時提供並通過 getIOException() 方法存取的“終止列印作業的 IOException”就是目前所說的 cause,可以通過 Throwable.getCause() 方法以及上述“遺留方法”存取它。
| 建構子摘要 | |
|---|---|
PrinterIOException(IOException exception)
建構具有指定 IOException 字元串表示形式的新 PrinterIOException。 |
|
| 方法摘要 | |
|---|---|
Throwable |
getCause()
返回此異常的 cause(終止列印作業的 IOException)。 |
IOException |
getIOException()
返回終止列印作業的 IOException。 |
| 從類別 java.lang.Throwable 繼承的方法 |
|---|
fillInStackTrace, getLocalizedMessage, getMessage, getStackTrace, initCause, printStackTrace, printStackTrace, printStackTrace, setStackTrace, toString |
| 從類別 java.lang.Object 繼承的方法 |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
| 建構子詳細資訊 |
|---|
public PrinterIOException(IOException exception)
IOException 字元串表示形式的新 PrinterIOException。
exception - 指定的 IOException| 方法詳細資訊 |
|---|
public IOException getIOException()
IOException。
這是通用異常鏈設施之前的方法。現在 Throwable.getCause() 方法是獲得此資訊的首選方法。
IOException。IOExceptionpublic Throwable getCause()
IOException)。
Throwable 中的 getCause
|
JavaTM 2 Platform Standard Ed. 6 |
|||||||||
| 上一個類別 下一個類別 | 框架 無框架 | |||||||||
| 摘要: 巢狀 | 欄位 | 建構子 | 方法 | 詳細資訊: 欄位 | 建構子 | 方法 | |||||||||
版權所有 2008 Sun Microsystems, Inc. 保留所有權利。請遵守GNU General Public License, version 2 only。