Checked exception thrown when an attempt is made to invoke or complete an
I/O operation upon channel that is closed, or at least closed to that
operation.
Thrown to indicate that an operation could not complete because
the input did not conform to the appropriate XML document type
for a collection of properties, as per the Properties
specification.
Signals that a malformed string in
modified UTF-8
format has been read in a data
input stream or by any class that implements the data input
interface.
Checked exception thrown when an input byte sequence is not legal for given
charset, or an input character sequence is not a legal sixteen-bit Unicode
sequence.
Exception indicating the failure of an object read operation due to
unread primitive data, or the end of data belonging to a serialized
object in the stream.
Signals that one of the ObjectStreamExceptions was thrown during a
write operation.
Signals that an I/O exception of some sort has occurred. This
class is the general class of exceptions produced by failed or
interrupted I/O operations.
Constructs an IOException with the specified cause and a
detail message of (cause==null ? null : cause.toString())
(which typically contains the class and detail message of cause).
Returns an array containing all of the exceptions that were
suppressed, typically by the try-with-resources
statement, in order to deliver this exception.
Constructs an IOException with the specified detail message
and cause.
Note that the detail message associated with cause is
not automatically incorporated into this exception's detail
message.
Parameters
message
The detail message (which is saved for later retrieval
by the Throwable.getMessage() method)
cause
The cause (which is saved for later retrieval by the
Throwable.getCause() method). (A null value is permitted,
and indicates that the cause is nonexistent or unknown.)
Constructs an IOException with the specified cause and a
detail message of (cause==null ? null : cause.toString())
(which typically contains the class and detail message of cause).
This constructor is useful for IO exceptions that are little more
than wrappers for other throwables.
Parameters
cause
The cause (which is saved for later retrieval by the
Throwable.getCause() method). (A null value is permitted,
and indicates that the cause is nonexistent or unknown.)
[[["Easy to understand","easyToUnderstand","thumb-up"],["Solved my problem","solvedMyProblem","thumb-up"],["Other","otherUp","thumb-up"]],[["Missing the information I need","missingTheInformationINeed","thumb-down"],["Too complicated / too many steps","tooComplicatedTooManySteps","thumb-down"],["Out of date","outOfDate","thumb-down"],["Samples / code issue","samplesCodeIssue","thumb-down"],["Other","otherDown","thumb-down"]],["Last updated 2024-07-10 UTC."],[],["`IOException` is a class extending `Exception`, signaling an I/O operation failure or interruption. It has multiple subclasses, including `FileNotFoundException` and `MalformedURLException`, and others, categorized as direct and indirect subclasses. Key actions include constructing `IOException` instances with or without a detail message and cause. Methods related to exception handling like retrieving messages, causes, and stack traces are also included, along with methods inherited from `Throwable` and `Object`.\n"]]