- java.lang.Object
-
- java.lang.Throwable
-
- java.lang.Exception
-
- java.io.IOException
-
- java.io.InterruptedIOException
-
- java.net.SocketTimeoutException
-
- All Implemented Interfaces:
-
Serializable
public class SocketTimeoutException extends InterruptedIOException
指示在套接字上发生超时时读取或接受。- 从以下版本开始:
- 1.4
- 另请参见:
- Serialized Form
-
-
Field Summary
-
Fields inherited from class java.io.InterruptedIOException
bytesTransferred
-
-
构造方法摘要
构造方法 Constructor 描述 SocketTimeoutException()
构造一个新的SocketTimeoutException,没有详细的消息。SocketTimeoutException(String msg)
构造一个带有详细消息的新SocketTimeoutException。
-
方法摘要
-
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
-
Methods inherited from class java.lang.Throwable
addSuppressed, fillInStackTrace, getCause, getLocalizedMessage, getMessage, getStackTrace, getSuppressed, initCause, printStackTrace, printStackTrace, printStackTrace, setStackTrace, toString
-
-
-
-
构造方法详细信息
-
SocketTimeoutException
public SocketTimeoutException(String msg)
构造一个带有详细消息的新SocketTimeoutException。- 参数
-
msg
- 详细信息
-
SocketTimeoutException
public SocketTimeoutException()
构造一个新的SocketTimeoutException,没有详细的消息。
-
-