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)
构造一个
IOException与指定的原因和详细消息
(cause==null ? null : cause.toString()) (它通常包含的类和详细消息
cause )。
|
addSuppressed, fillInStackTrace, getCause, getLocalizedMessage, getMessage, getStackTrace, getSuppressed, initCause, printStackTrace, printStackTrace, printStackTrace, setStackTrace, toStringpublic IOException()
IOException与
null作为其错误详细信息。
public IOException(String message)
IOException详细消息的IOException。
message - 详细信息(由
Throwable.getMessage()方法保存供以后检索)
public IOException(String message, Throwable cause)
IOException带指定详细消息和原因。
请注意,与cause联的详细消息不会自动并入此异常的详细消息。
message - 详细信息(由
Throwable.getMessage()方法保存供以后检索)
cause - 原因(由Throwable.getCause()方法保存供以后检索)。
(允许空值,表示原因不存在或未知。)
public IOException(Throwable cause)
IOException与指定的原因和详细消息(cause==null ? null : cause.toString()) (它通常包含的类和详细消息cause )。
这个构造函数对于IO异常非常有用,对于其他的throwable而言,它不仅仅是包装器。
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.