# IOException

Artifact: [androidx.datastore:datastore-core](https://developer.android.com/jetpack/androidx/releases/datastore) [View Source](https://cs.android.com/search?q=file:androidx/datastore/core/+class:androidx.datastore.core.IOException) Added in [1.2.0](https://developer.android.com/jetpack/androidx/releases/datastore#1.2.0)

*** ** * ** ***

Common/AllAndroid/JVMNative/C/iOSJavaScript
- Cmn

  ```
  open class IOException : Exception
  ```
- android

  ```
  actual typealias IOException = IOException : Exception
  ```

|---|---|---|---|
| [kotlin.Any](https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-any/index.html) ||||
| ↳ | [kotlin.Throwable](https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-throwable/index.html) |||
|   | ↳ | [kotlin.Exception](https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-exception/index.html) ||
|   |   | ↳ | [androidx.datastore.core.IOException](https://developer.android.com/reference/kotlin/androidx/datastore/core/IOException) |

Known direct subclasses [CorruptionException](https://developer.android.com/reference/kotlin/androidx/datastore/core/CorruptionException)

|---|---|
| `https://developer.android.com/reference/kotlin/androidx/datastore/core/CorruptionException` | A subclass of IOException that indicates that the file could not be de-serialized due to data format corruption. |

*** ** * ** ***

Common IOException to be defined in jvm and native code.

## Summary

| ### Public constructors |
|---|---|
| `https://developer.android.com/reference/kotlin/androidx/datastore/core/IOException#IOException(kotlin.String)(message: https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-string/index.html?)` | Cmn N JS |
| `https://developer.android.com/reference/kotlin/androidx/datastore/core/IOException#IOException(kotlin.String,kotlin.Throwable)(message: https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-string/index.html?, cause: https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-throwable/index.html?)` | Cmn N JS |

| ### Inherited functions |
|---|
| From [kotlin.Throwable](https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-throwable/index.html) |---|---|---| | `https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-array/index.html<https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-string/index.html>` | `@https://kotlinlang.org/api/core/kotlin-stdlib/kotlin.experimental/-experimental-native-api/index.html https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-throwable/get-stack-trace.html()` | Cmn | | `https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-array/index.html<https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-string/index.html>` | `@https://kotlinlang.org/api/core/kotlin-stdlib/kotlin.experimental/-experimental-native-api/index.html https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-throwable/get-stack-trace.html()` | N | | `https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-unit/index.html` | `https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-throwable/print-stack-trace.html()` | Cmn | | `https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-unit/index.html` | `https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-throwable/print-stack-trace.html()` | N | | `open https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-string/index.html` | `https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-throwable/to-string.html()` | Cmn | | `open https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-string/index.html` | `https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-throwable/to-string.html()` | N | | `open external https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-string/index.html` | `https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-throwable/to-string.html()` | JS | |

| ### Inherited properties |
|---|
| From [kotlin.Throwable](https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-throwable/index.html) |---|---|---| | `open https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-throwable/index.html?` | `https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-throwable/cause.html` | Cmn | | `open https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-throwable/index.html?` | `https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-throwable/cause.html` | N | | `open external https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-throwable/index.html?` | `https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-throwable/cause.html` | JS | | `open https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-string/index.html?` | `https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-throwable/message.html` | Cmn | | `open https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-string/index.html?` | `https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-throwable/message.html` | N | | `open external https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-string/index.html?` | `https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-throwable/message.html` | JS | |

## Public constructors

### IOException

Cmn N JS

```
IOException(message: String?)
```

### IOException

Cmn N JS

```
IOException(message: String?, cause: Throwable?)
```