InterruptedIOException
Signals that an I/O operation has been interrupted. An InterruptedIOException is thrown to indicate that an input or output transfer has been terminated because the thread performing it was interrupted. The field bytesTransferred indicates how many bytes were successfully transferred before the interruption occurred.
See also
Signals that an I/O operation has been interrupted. An InterruptedIOException is thrown to indicate that an input or output transfer has been terminated because the thread performing it was interrupted. The field bytesTransferred indicates how many bytes were successfully transferred before the interruption occurred.
See also
Constructors
Properties
Reports how many bytes had been transferred as part of the I/O operation before it was interrupted.
Reports how many bytes had been transferred as part of the I/O operation before it was interrupted.
Reports how many bytes had been transferred as part of the I/O operation before it was interrupted.
Attempts to retrieve the code
from an exception thrown from JavaScript. If unable to retrieve it, null
is returned.
Attempts to retrieve the code
from an exception thrown from JavaScript. If unable to retrieve it, null
is returned.
Attempts to retrieve the code
from an exception thrown from JavaScript. If unable to retrieve it, null
is returned.
Functions
Converts the throwable to an IOException if it is not already one. When errorCodeOrNull is ENOENT
, then this function will return FileNotFoundException. When the errorCodeOrNull is EINTR
, then this function will return InterruptedIOException. When the errorCodeOrNull starts with ERR_FS_
, then this function will return FileSystemException.
Ensures that the throwable is an instance of IOException. If it is not, it will encase it in one. If the throwable is an instance of InterruptedException, this function returns an InterruptedIOException with the InterruptedException as a suppressed exception.
Ensures that the throwable is an instance of IOException. If it is not, it will encase it in one with the provided lazyMessage. If the throwable is an instance of InterruptedException, this function returns an InterruptedIOException with the InterruptedException as a suppressed exception.