public class IOException extends 异常
InputStream,
OutputStream,
Serialized Form
| Constructor and Description |
|---|
IOException()
构建一个
IOException
null作为它的错误详细信息。
|
IOException(String message)
构建一个指定详细信息的
IOException。
|
IOException(String message, Throwable cause)
构建指定详细信息而导致
IOException。
|
IOException(Throwable cause)
构建与指定的原因和
(cause==null ? null : cause.toString())详细信息的
IOException(通常包含
cause类和详细信息)。
|
addSuppressed, fillInStackTrace, getCause, getLocalizedMessage, getMessage, getStackTrace, getSuppressed, initCause, printStackTrace, printStackTrace, printStackTrace, setStackTrace, toStringpublic IOException()
IOException
null作为它的错误详细信息。
public IOException(String message)
IOException。
message的详细信息(这是以后的
Throwable.getMessage()方法检索)
public IOException(String message, Throwable cause)
IOException。
值得注意的是,与cause的详细信息不自动纳入该异常的详细信息。
message的详细信息(这是以后的
Throwable.getMessage()方法检索)
cause的原因(这是以后的
Throwable.getCause()方法检索)。(一个空值是允许的,并指出原因是不存在的或未知的。)
public IOException(Throwable cause)
(cause==null ? null : cause.toString())详细信息的
IOException(通常包含
cause类和详细信息)。此构造函数用于IO异常,多为其他throwables包装。
cause的原因(这是以后的
Throwable.getCause()方法检索)。(一个空值是允许的,并指出原因是不存在的或未知的。)
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.