java.io
Class InterruptedIOException
java.lang.Object
java.lang.Throwable
java.lang.Exception
java.io.IOException
java.io.InterruptedIOException
- All Implemented Interfaces:
- Serializable
- Direct Known Subclasses:
- SocketTimeoutException
public class InterruptedIOException
- extends IOException
This exception is thrown when a in process I/O operation is interrupted
for some reason. The field bytesTransferred will contain the number of
bytes that were read/written prior to the interruption.
- See Also:
Thread.interrupt()
,
Serialized Form
Field Summary |
int |
bytesTransferred
The number of bytes read/written prior to the interruption. |
Methods inherited from class java.lang.Throwable |
fillInStackTrace, getCause, getLocalizedMessage, getMessage, getStackTrace, initCause, printStackTrace, printStackTrace, printStackTrace, setStackTrace, toString |
bytesTransferred
public int bytesTransferred
- The number of bytes read/written prior to the interruption.
InterruptedIOException
public InterruptedIOException()
- Create an extends without a descriptive error message.
InterruptedIOException
public InterruptedIOException(String message)
- Create an exception with a descriptive error message.
- Parameters:
message
- the descriptive error message