java.lang.Object
java.lang.Throwable
java.lang.Exception
java.io.IOException
- 所有已实现的接口:
Serializable
- 已知子类:
AttachOperationFailedException
,ChangedCharSetException
,CharacterCodingException
,CharConversionException
,ClosedChannelException
,ClosedConnectionException
,EOFException
,FileLockInterruptionException
,FileNotFoundException
,FilerException
,FileSystemException
,HttpRetryException
,HttpTimeoutException
,IIOException
,InterruptedByTimeoutException
,InterruptedIOException
,InvalidPropertiesFormatException
,JMXProviderException
,JMXServerErrorException
,MalformedURLException
,ObjectStreamException
,ProtocolException
,RemoteException
,SaslException
,SocketException
,SSLException
,SyncFailedException
,TransportTimeoutException
,UnknownHostException
,UnknownServiceException
,UnsupportedEncodingException
,UserPrincipalNotFoundException
,UTFDataFormatException
,WebSocketHandshakeException
,ZipException
表示发生某种 I/O 异常的信号。此类是由失败或中断的 I/O 操作产生的异常的一般类。
- 自从:
- 1.0
- 参见:
-
构造方法总结
构造方法构造方法描述构造一个IOException
并将null
作为其错误详细信息。IOException
(String message) 使用指定的详细消息构造一个IOException
。IOException
(String message, Throwable cause) 使用指定的详细消息和原因构造一个IOException
。IOException
(Throwable cause) 构造具有指定原因的IOException
和(cause==null ? null : cause.toString())
的详细消息(通常包含cause
的类和详细消息)。 -
方法总结
在类 java.lang.Throwable 中声明的方法
addSuppressed, fillInStackTrace, getCause, getLocalizedMessage, getMessage, getStackTrace, getSuppressed, initCause, printStackTrace, printStackTrace, printStackTrace, setStackTrace, toString
-
构造方法详细信息
-
IOException
public IOException()构造一个IOException
并将null
作为其错误详细信息。 -
IOException
使用指定的详细消息构造一个IOException
。- 参数:
message
- 详细消息(保存以供以后通过Throwable.getMessage()
方法检索)
-
IOException
使用指定的详细消息和原因构造一个IOException
。请注意,与
cause
关联的详细消息是not自动合并到此异常的详细消息中。- 参数:
message
- 详细消息(保存以供以后通过Throwable.getMessage()
方法检索)cause
- 原因(保存以供以后通过Throwable.getCause()
方法检索)。 (允许空值,表示原因不存在或未知。)- 自从:
- 1.6
-
IOException
构造具有指定原因的IOException
和(cause==null ? null : cause.toString())
的详细消息(通常包含cause
的类和详细消息)。此构造函数对于 IO 异常非常有用,这些异常只不过是其他可抛出对象的包装器。- 参数:
cause
- 原因(保存以供以后通过Throwable.getCause()
方法检索)。 (允许空值,表示原因不存在或未知。)- 自从:
- 1.6
-