# IOException

public class **IOException** extends [Exception](https://developers.google.com/j2objc/javadoc/jre/reference/java/lang/Exception.html)  

|---|---|---|
| Known Direct Subclasses [CharConversionException](https://developers.google.com/j2objc/javadoc/jre/reference/java/io/CharConversionException.html), [CharacterCodingException](https://developers.google.com/j2objc/javadoc/jre/reference/java/nio/charset/CharacterCodingException.html), [ClosedChannelException](https://developers.google.com/j2objc/javadoc/jre/reference/java/nio/channels/ClosedChannelException.html), [EOFException](https://developers.google.com/j2objc/javadoc/jre/reference/java/io/EOFException.html), [FileLockInterruptionException](https://developers.google.com/j2objc/javadoc/jre/reference/java/nio/channels/FileLockInterruptionException.html), [FileNotFoundException](https://developers.google.com/j2objc/javadoc/jre/reference/java/io/FileNotFoundException.html), [FileSystemException](https://developers.google.com/j2objc/javadoc/jre/reference/java/nio/file/FileSystemException.html), [HttpRetryException](https://developers.google.com/j2objc/javadoc/jre/reference/java/net/HttpRetryException.html), [InterruptedByTimeoutException](https://developers.google.com/j2objc/javadoc/jre/reference/java/nio/channels/InterruptedByTimeoutException.html), [InterruptedIOException](https://developers.google.com/j2objc/javadoc/jre/reference/java/io/InterruptedIOException.html), [InvalidPropertiesFormatException](https://developers.google.com/j2objc/javadoc/jre/reference/java/util/InvalidPropertiesFormatException.html), [MalformedURLException](https://developers.google.com/j2objc/javadoc/jre/reference/java/net/MalformedURLException.html), [ObjectStreamException](https://developers.google.com/j2objc/javadoc/jre/reference/java/io/ObjectStreamException.html), [ProtocolException](https://developers.google.com/j2objc/javadoc/jre/reference/java/net/ProtocolException.html), [SSLException](https://developers.google.com/j2objc/javadoc/jre/reference/javax/net/ssl/SSLException.html), and [8 others.](https://developers.google.com/j2objc/javadoc/jre/reference/java/io/IOException#) |---|---| | [CharConversionException](https://developers.google.com/j2objc/javadoc/jre/reference/java/io/CharConversionException.html) | Base class for character conversion exceptions. | | [CharacterCodingException](https://developers.google.com/j2objc/javadoc/jre/reference/java/nio/charset/CharacterCodingException.html) | Checked exception thrown when a character encoding or decoding error occurs. | | [ClosedChannelException](https://developers.google.com/j2objc/javadoc/jre/reference/java/nio/channels/ClosedChannelException.html) | 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. | | [EOFException](https://developers.google.com/j2objc/javadoc/jre/reference/java/io/EOFException.html) | Signals that an end of file or end of stream has been reached unexpectedly during input. | | [FileLockInterruptionException](https://developers.google.com/j2objc/javadoc/jre/reference/java/nio/channels/FileLockInterruptionException.html) | Checked exception received by a thread when another thread interrupts it while it is waiting to acquire a file lock. | | [FileNotFoundException](https://developers.google.com/j2objc/javadoc/jre/reference/java/io/FileNotFoundException.html) | Signals that an attempt to open the file denoted by a specified pathname has failed. | | [FileSystemException](https://developers.google.com/j2objc/javadoc/jre/reference/java/nio/file/FileSystemException.html) | Thrown when a file system operation fails on one or two files. | | [HttpRetryException](https://developers.google.com/j2objc/javadoc/jre/reference/java/net/HttpRetryException.html) | Thrown to indicate that a HTTP request needs to be retried but cannot be retried automatically, due to streaming mode being enabled. | | [InterruptedByTimeoutException](https://developers.google.com/j2objc/javadoc/jre/reference/java/nio/channels/InterruptedByTimeoutException.html) | Checked exception received by a thread when a timeout elapses before an asynchronous operation completes. | | [InterruptedIOException](https://developers.google.com/j2objc/javadoc/jre/reference/java/io/InterruptedIOException.html) | Signals that an I/O operation has been interrupted. | | [InvalidPropertiesFormatException](https://developers.google.com/j2objc/javadoc/jre/reference/java/util/InvalidPropertiesFormatException.html) | 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 `https://developers.google.com/j2objc/javadoc/jre/reference/java/util/Properties.html` specification. | | [MalformedURLException](https://developers.google.com/j2objc/javadoc/jre/reference/java/net/MalformedURLException.html) | Thrown to indicate that a malformed URL has occurred. | | [ObjectStreamException](https://developers.google.com/j2objc/javadoc/jre/reference/java/io/ObjectStreamException.html) | Superclass of all exceptions specific to Object Stream classes. | | [ProtocolException](https://developers.google.com/j2objc/javadoc/jre/reference/java/net/ProtocolException.html) | Thrown to indicate that there is an error in the underlying protocol, such as a TCP error. | | [SSLException](https://developers.google.com/j2objc/javadoc/jre/reference/javax/net/ssl/SSLException.html) | Indicates some kind of error detected by an SSL subsystem. | | [SocketException](https://developers.google.com/j2objc/javadoc/jre/reference/java/net/SocketException.html) | Thrown to indicate that there is an error creating or accessing a Socket. | | [SyncFailedException](https://developers.google.com/j2objc/javadoc/jre/reference/java/io/SyncFailedException.html) | Signals that a sync operation has failed. | | [UTFDataFormatException](https://developers.google.com/j2objc/javadoc/jre/reference/java/io/UTFDataFormatException.html) | Signals that a malformed string in [modified UTF-8](https://developers.google.com/j2objc/javadoc/jre/reference/java/io/DataInput#modified-utf-8) format has been read in a data input stream or by any class that implements the data input interface. | | [UnknownHostException](https://developers.google.com/j2objc/javadoc/jre/reference/java/net/UnknownHostException.html) | Thrown to indicate that the IP address of a host could not be determined. | | [UnknownServiceException](https://developers.google.com/j2objc/javadoc/jre/reference/java/net/UnknownServiceException.html) | Thrown to indicate that an unknown service exception has occurred. | | [UnsupportedEncodingException](https://developers.google.com/j2objc/javadoc/jre/reference/java/io/UnsupportedEncodingException.html) | The Character Encoding is not supported. | | [UserPrincipalNotFoundException](https://developers.google.com/j2objc/javadoc/jre/reference/java/nio/file/attribute/UserPrincipalNotFoundException.html) | Checked exception thrown when a lookup of `https://developers.google.com/j2objc/javadoc/jre/reference/java/nio/file/attribute/UserPrincipal.html` fails because the principal does not exist. | | [ZipException](https://developers.google.com/j2objc/javadoc/jre/reference/java/util/zip/ZipException.html) | Signals that a Zip exception of some sort has occurred. | |||

|---|---|---|
| Known Indirect Subclasses [AccessDeniedException](https://developers.google.com/j2objc/javadoc/jre/reference/java/nio/file/AccessDeniedException.html), [AsynchronousCloseException](https://developers.google.com/j2objc/javadoc/jre/reference/java/nio/channels/AsynchronousCloseException.html), [AtomicMoveNotSupportedException](https://developers.google.com/j2objc/javadoc/jre/reference/java/nio/file/AtomicMoveNotSupportedException.html), [BindException](https://developers.google.com/j2objc/javadoc/jre/reference/java/net/BindException.html), [ClosedByInterruptException](https://developers.google.com/j2objc/javadoc/jre/reference/java/nio/channels/ClosedByInterruptException.html), [ConnectException](https://developers.google.com/j2objc/javadoc/jre/reference/java/net/ConnectException.html), [DirectoryNotEmptyException](https://developers.google.com/j2objc/javadoc/jre/reference/java/nio/file/DirectoryNotEmptyException.html), [FileAlreadyExistsException](https://developers.google.com/j2objc/javadoc/jre/reference/java/nio/file/FileAlreadyExistsException.html), [FileSystemLoopException](https://developers.google.com/j2objc/javadoc/jre/reference/java/nio/file/FileSystemLoopException.html), [InvalidClassException](https://developers.google.com/j2objc/javadoc/jre/reference/java/io/InvalidClassException.html), [InvalidObjectException](https://developers.google.com/j2objc/javadoc/jre/reference/java/io/InvalidObjectException.html), [JarException](https://developers.google.com/j2objc/javadoc/jre/reference/java/util/jar/JarException.html), [MalformedInputException](https://developers.google.com/j2objc/javadoc/jre/reference/java/nio/charset/MalformedInputException.html), [NoRouteToHostException](https://developers.google.com/j2objc/javadoc/jre/reference/java/net/NoRouteToHostException.html), [NoSuchFileException](https://developers.google.com/j2objc/javadoc/jre/reference/java/nio/file/NoSuchFileException.html), and [14 others.](https://developers.google.com/j2objc/javadoc/jre/reference/java/io/IOException#) |---|---| | [AccessDeniedException](https://developers.google.com/j2objc/javadoc/jre/reference/java/nio/file/AccessDeniedException.html) | Checked exception thrown when a file system operation is denied, typically due to a file permission or other access check. | | [AsynchronousCloseException](https://developers.google.com/j2objc/javadoc/jre/reference/java/nio/channels/AsynchronousCloseException.html) | Checked exception received by a thread when another thread closes the channel or the part of the channel upon which it is blocked in an I/O operation. | | [AtomicMoveNotSupportedException](https://developers.google.com/j2objc/javadoc/jre/reference/java/nio/file/AtomicMoveNotSupportedException.html) | Checked exception thrown when a file cannot be moved as an atomic file system operation. | | [BindException](https://developers.google.com/j2objc/javadoc/jre/reference/java/net/BindException.html) | Signals that an error occurred while attempting to bind a socket to a local address and port. | | [ClosedByInterruptException](https://developers.google.com/j2objc/javadoc/jre/reference/java/nio/channels/ClosedByInterruptException.html) | Checked exception received by a thread when another thread interrupts it while it is blocked in an I/O operation upon a channel. | | [ConnectException](https://developers.google.com/j2objc/javadoc/jre/reference/java/net/ConnectException.html) | Signals that an error occurred while attempting to connect a socket to a remote address and port. | | [DirectoryNotEmptyException](https://developers.google.com/j2objc/javadoc/jre/reference/java/nio/file/DirectoryNotEmptyException.html) | Checked exception thrown when a file system operation fails because a directory is not empty. | | [FileAlreadyExistsException](https://developers.google.com/j2objc/javadoc/jre/reference/java/nio/file/FileAlreadyExistsException.html) | Checked exception thrown when an attempt is made to create a file or directory and a file of that name already exists. | | [FileSystemLoopException](https://developers.google.com/j2objc/javadoc/jre/reference/java/nio/file/FileSystemLoopException.html) | Checked exception thrown when a file system loop, or cycle, is encountered. | | [InvalidClassException](https://developers.google.com/j2objc/javadoc/jre/reference/java/io/InvalidClassException.html) | Thrown when the Serialization runtime detects one of the following problems with a Class. | | [InvalidObjectException](https://developers.google.com/j2objc/javadoc/jre/reference/java/io/InvalidObjectException.html) | Indicates that one or more deserialized objects failed validation tests. | | [JarException](https://developers.google.com/j2objc/javadoc/jre/reference/java/util/jar/JarException.html) | Signals that an error of some sort has occurred while reading from or writing to a JAR file. | | [MalformedInputException](https://developers.google.com/j2objc/javadoc/jre/reference/java/nio/charset/MalformedInputException.html) | 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. | | [NoRouteToHostException](https://developers.google.com/j2objc/javadoc/jre/reference/java/net/NoRouteToHostException.html) | Signals that an error occurred while attempting to connect a socket to a remote address and port. | | [NoSuchFileException](https://developers.google.com/j2objc/javadoc/jre/reference/java/nio/file/NoSuchFileException.html) | Checked exception thrown when an attempt is made to access a file that does not exist. | | [NotActiveException](https://developers.google.com/j2objc/javadoc/jre/reference/java/io/NotActiveException.html) | Thrown when serialization or deserialization is not active. | | [NotDirectoryException](https://developers.google.com/j2objc/javadoc/jre/reference/java/nio/file/NotDirectoryException.html) | Checked exception thrown when a file system operation, intended for a directory, fails because the file is not a directory. | | [NotLinkException](https://developers.google.com/j2objc/javadoc/jre/reference/java/nio/file/NotLinkException.html) | Checked exception thrown when a file system operation fails because a file is not a symbolic link. | | [NotSerializableException](https://developers.google.com/j2objc/javadoc/jre/reference/java/io/NotSerializableException.html) | Thrown when an instance is required to have a Serializable interface. | | [OptionalDataException](https://developers.google.com/j2objc/javadoc/jre/reference/java/io/OptionalDataException.html) | 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. | | [PortUnreachableException](https://developers.google.com/j2objc/javadoc/jre/reference/java/net/PortUnreachableException.html) | Signals that an ICMP Port Unreachable message has been received on a connected datagram. | | [SSLHandshakeException](https://developers.google.com/j2objc/javadoc/jre/reference/javax/net/ssl/SSLHandshakeException.html) | Indicates that the client and server could not negotiate the desired level of security. | | [SSLKeyException](https://developers.google.com/j2objc/javadoc/jre/reference/javax/net/ssl/SSLKeyException.html) | Reports a bad SSL key. | | [SSLPeerUnverifiedException](https://developers.google.com/j2objc/javadoc/jre/reference/javax/net/ssl/SSLPeerUnverifiedException.html) | Indicates that the peer's identity has not been verified. | | [SSLProtocolException](https://developers.google.com/j2objc/javadoc/jre/reference/javax/net/ssl/SSLProtocolException.html) | Reports an error in the operation of the SSL protocol. | | [SocketTimeoutException](https://developers.google.com/j2objc/javadoc/jre/reference/java/net/SocketTimeoutException.html) | Signals that a timeout has occurred on a socket read or accept. | | [StreamCorruptedException](https://developers.google.com/j2objc/javadoc/jre/reference/java/io/StreamCorruptedException.html) | Thrown when control information that was read from an object stream violates internal consistency checks. | | [UnmappableCharacterException](https://developers.google.com/j2objc/javadoc/jre/reference/java/nio/charset/UnmappableCharacterException.html) | Checked exception thrown when an input character (or byte) sequence is valid but cannot be mapped to an output byte (or character) sequence. | | [WriteAbortedException](https://developers.google.com/j2objc/javadoc/jre/reference/java/io/WriteAbortedException.html) | 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.

##### See Also

- `https://developers.google.com/j2objc/javadoc/jre/reference/java/io/InputStream.html`
- `https://developers.google.com/j2objc/javadoc/jre/reference/java/io/OutputStream.html`

### Public Constructor Summary

|---|---|
|   | [IOException](https://developers.google.com/j2objc/javadoc/jre/reference/java/io/IOException.html#IOException())() Constructs an `IOException` with `null` as its error detail message. |
|   | [IOException](https://developers.google.com/j2objc/javadoc/jre/reference/java/io/IOException.html#IOException(java.lang.String))([String](https://developers.google.com/j2objc/javadoc/jre/reference/java/lang/String.html) message) Constructs an `IOException` with the specified detail message. |
|   | [IOException](https://developers.google.com/j2objc/javadoc/jre/reference/java/io/IOException.html#IOException(java.lang.String,%20java.lang.Throwable))([String](https://developers.google.com/j2objc/javadoc/jre/reference/java/lang/String.html) message, [Throwable](https://developers.google.com/j2objc/javadoc/jre/reference/java/lang/Throwable.html) cause) Constructs an `IOException` with the specified detail message and cause. |
|   | [IOException](https://developers.google.com/j2objc/javadoc/jre/reference/java/io/IOException.html#IOException(java.lang.Throwable))([Throwable](https://developers.google.com/j2objc/javadoc/jre/reference/java/lang/Throwable.html) cause) 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`). |

### Inherited Method Summary

From class [java.lang.Throwable](https://developers.google.com/j2objc/javadoc/jre/reference/java/lang/Throwable.html)

|---|---|
| synchronized final void | [addSuppressed](https://developers.google.com/j2objc/javadoc/jre/reference/java/lang/Throwable.html#addSuppressed(java.lang.Throwable))([Throwable](https://developers.google.com/j2objc/javadoc/jre/reference/java/lang/Throwable.html) exception) Appends the specified exception to the exceptions that were suppressed in order to deliver this exception. |
| synchronized [Throwable](https://developers.google.com/j2objc/javadoc/jre/reference/java/lang/Throwable.html) | [fillInStackTrace](https://developers.google.com/j2objc/javadoc/jre/reference/java/lang/Throwable.html#fillInStackTrace())() Fills in the execution stack trace. |
| synchronized [Throwable](https://developers.google.com/j2objc/javadoc/jre/reference/java/lang/Throwable.html) | [getCause](https://developers.google.com/j2objc/javadoc/jre/reference/java/lang/Throwable.html#getCause())() Returns the cause of this throwable or `null` if the cause is nonexistent or unknown. |
| [String](https://developers.google.com/j2objc/javadoc/jre/reference/java/lang/String.html) | [getLocalizedMessage](https://developers.google.com/j2objc/javadoc/jre/reference/java/lang/Throwable.html#getLocalizedMessage())() Creates a localized description of this throwable. |
| [String](https://developers.google.com/j2objc/javadoc/jre/reference/java/lang/String.html) | [getMessage](https://developers.google.com/j2objc/javadoc/jre/reference/java/lang/Throwable.html#getMessage())() Returns the detail message string of this throwable. |
| StackTraceElement\[\] | [getStackTrace](https://developers.google.com/j2objc/javadoc/jre/reference/java/lang/Throwable.html#getStackTrace())() Provides programmatic access to the stack trace information printed by `https://developers.google.com/j2objc/javadoc/jre/reference/java/lang/Throwable.html#printStackTrace()`. |
| synchronized final [Throwable\[\]](https://developers.google.com/j2objc/javadoc/jre/reference/java/lang/Throwable.html) | [getSuppressed](https://developers.google.com/j2objc/javadoc/jre/reference/java/lang/Throwable.html#getSuppressed())() Returns an array containing all of the exceptions that were suppressed, typically by the `try`-with-resources statement, in order to deliver this exception. |
| synchronized [Throwable](https://developers.google.com/j2objc/javadoc/jre/reference/java/lang/Throwable.html) | [initCause](https://developers.google.com/j2objc/javadoc/jre/reference/java/lang/Throwable.html#initCause(java.lang.Throwable))([Throwable](https://developers.google.com/j2objc/javadoc/jre/reference/java/lang/Throwable.html) cause) Initializes the *cause* of this throwable to the specified value. |
| void | [printStackTrace](https://developers.google.com/j2objc/javadoc/jre/reference/java/lang/Throwable.html#printStackTrace())() Prints this throwable and its backtrace to the standard error stream. |
| void | [printStackTrace](https://developers.google.com/j2objc/javadoc/jre/reference/java/lang/Throwable.html#printStackTrace(java.io.PrintWriter))([PrintWriter](https://developers.google.com/j2objc/javadoc/jre/reference/java/io/PrintWriter.html) s) Prints this throwable and its backtrace to the specified print writer. |
| void | [printStackTrace](https://developers.google.com/j2objc/javadoc/jre/reference/java/lang/Throwable.html#printStackTrace(java.io.PrintStream))([PrintStream](https://developers.google.com/j2objc/javadoc/jre/reference/java/io/PrintStream.html) s) Prints this throwable and its backtrace to the specified print stream. |
| void | [setStackTrace](https://developers.google.com/j2objc/javadoc/jre/reference/java/lang/Throwable.html#setStackTrace(java.lang.StackTraceElement[]))(StackTraceElement\[\] stackTrace) Sets the stack trace elements that will be returned by `https://developers.google.com/j2objc/javadoc/jre/reference/java/lang/Throwable.html#getStackTrace()` and printed by `https://developers.google.com/j2objc/javadoc/jre/reference/java/lang/Throwable.html#printStackTrace()` and related methods. |
| [String](https://developers.google.com/j2objc/javadoc/jre/reference/java/lang/String.html) | [toString](https://developers.google.com/j2objc/javadoc/jre/reference/java/lang/Throwable.html#toString())() Returns a short description of this throwable. |

From class [java.lang.Object](https://developers.google.com/j2objc/javadoc/jre/reference/java/lang/Object.html)

|---|---|
| [Object](https://developers.google.com/j2objc/javadoc/jre/reference/java/lang/Object.html) | [clone](https://developers.google.com/j2objc/javadoc/jre/reference/java/lang/Object.html#clone())() Creates and returns a copy of this `Object`. |
| boolean | [equals](https://developers.google.com/j2objc/javadoc/jre/reference/java/lang/Object.html#equals(java.lang.Object))([Object](https://developers.google.com/j2objc/javadoc/jre/reference/java/lang/Object.html) obj) Compares this instance with the specified object and indicates if they are equal. |
| void | [finalize](https://developers.google.com/j2objc/javadoc/jre/reference/java/lang/Object.html#finalize())() Invoked when the garbage collector has detected that this instance is no longer reachable. |
| final [Class](https://developers.google.com/j2objc/javadoc/jre/reference/java/lang/Class.html)\<?\> | [getClass](https://developers.google.com/j2objc/javadoc/jre/reference/java/lang/Object.html#getClass())() Returns the unique instance of `https://developers.google.com/j2objc/javadoc/jre/reference/java/lang/Class.html` that represents this object's class. |
| int | [hashCode](https://developers.google.com/j2objc/javadoc/jre/reference/java/lang/Object.html#hashCode())() Returns an integer hash code for this object. |
| final void | [notify](https://developers.google.com/j2objc/javadoc/jre/reference/java/lang/Object.html#notify())() Causes a thread which is waiting on this object's monitor (by means of calling one of the `wait()` methods) to be woken up. |
| final void | [notifyAll](https://developers.google.com/j2objc/javadoc/jre/reference/java/lang/Object.html#notifyAll())() Causes all threads which are waiting on this object's monitor (by means of calling one of the `wait()` methods) to be woken up. |
| [String](https://developers.google.com/j2objc/javadoc/jre/reference/java/lang/String.html) | [toString](https://developers.google.com/j2objc/javadoc/jre/reference/java/lang/Object.html#toString())() Returns a string containing a concise, human-readable description of this object. |
| final void | [wait](https://developers.google.com/j2objc/javadoc/jre/reference/java/lang/Object.html#wait(long,%20int))(long timeout, int nanos) Causes the calling thread to wait until another thread calls the `notify()` or `notifyAll()` method of this object or until the specified timeout expires. |
| final void | [wait](https://developers.google.com/j2objc/javadoc/jre/reference/java/lang/Object.html#wait(long))(long timeout) Causes the calling thread to wait until another thread calls the `notify()` or `notifyAll()` method of this object or until the specified timeout expires. |
| final void | [wait](https://developers.google.com/j2objc/javadoc/jre/reference/java/lang/Object.html#wait())() Causes the calling thread to wait until another thread calls the `notify()` or `notifyAll()` method of this object. |

## Public Constructors

#### public
**IOException**
()

Constructs an `IOException` with `null`
as its error detail message.

#### public
**IOException**
([String](https://developers.google.com/j2objc/javadoc/jre/reference/java/lang/String.html) message)

Constructs an `IOException` with the specified detail message.

##### Parameters

| message | The detail message (which is saved for later retrieval by the `https://developers.google.com/j2objc/javadoc/jre/reference/java/lang/Throwable.html#getMessage()` method) |
|---|---|

#### public
**IOException**
([String](https://developers.google.com/j2objc/javadoc/jre/reference/java/lang/String.html) message, [Throwable](https://developers.google.com/j2objc/javadoc/jre/reference/java/lang/Throwable.html) cause)

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 `https://developers.google.com/j2objc/javadoc/jre/reference/java/lang/Throwable.html#getMessage()` method) |
| cause | The cause (which is saved for later retrieval by the `https://developers.google.com/j2objc/javadoc/jre/reference/java/lang/Throwable.html#getCause()` method). (A null value is permitted, and indicates that the cause is nonexistent or unknown.) |
|---|---|

#### public
**IOException**
([Throwable](https://developers.google.com/j2objc/javadoc/jre/reference/java/lang/Throwable.html) cause)

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 `https://developers.google.com/j2objc/javadoc/jre/reference/java/lang/Throwable.html#getCause()` method). (A null value is permitted, and indicates that the cause is nonexistent or unknown.) |
|---|---|