public class IIOException extends IOException
另外一个消息字符串,引用了另一个Throwable
(Error
或异常
)保持。这个参考,如果non-null
,指的是引发此异常发生的事件。例如,一个IOException
而从File
阅读将储存在那里。
Constructor and Description |
---|
IIOException(String message)
构建一个给定的消息
String 一
IIOException 。
|
IIOException(String message, Throwable cause)
构建一个给定的消息
String 和
Throwable ,其根本原因
IIOException 。
|
addSuppressed, fillInStackTrace, getCause, getLocalizedMessage, getMessage, getStackTrace, getSuppressed, initCause, printStackTrace, printStackTrace, printStackTrace, setStackTrace, toString
public IIOException(String message)
String
一
IIOException
。根本原因是集;
getCause
将返回
null
。
message
的错误信息。
Throwable.getMessage()
public IIOException(String message, Throwable cause)
String
和
Throwable
,其根本原因
IIOException
。
message
的错误信息。
cause
-
Throwable
(
Error
或
异常
)引发此异常发生。
Throwable.getCause()
,
Throwable.getMessage()
Submit a bug or feature
For further API reference and developer documentation, see Java SE Documentation. That documentation contains more detailed, developer-targeted descriptions, with conceptual overviews, definitions of terms, workarounds, and working code examples.
Copyright © 1993, 2014, Oracle and/or its affiliates. All rights reserved.