# ParcelFormatException

Added in[API level 1](https://developer.android.com/guide/topics/manifest/uses-sdk-element.html#ApiLevels)

# ParcelFormatException

*** ** * ** ***

Kotlin\|[Java](https://developer.android.com/reference/android/os/ParcelFormatException "View this page in Java")  

```
open class ParcelFormatException : RuntimeException
```

|---|---|---|---|----------------------------------------------------------------------------------------------------------------------|
| [kotlin.Any](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-any/index.html)                                                |||||
| ↳ | [kotlin.Throwable](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-throwable/index.html)                                 ||||
|   | ↳ | [java.lang.Exception](https://developer.android.com/reference/kotlin/java/lang/Exception.html#)                            |||
|   |   | ↳ | [java.lang.RuntimeException](https://developer.android.com/reference/kotlin/java/lang/RuntimeException.html#)           ||
|   |   |   | ↳ | [android.os.ParcelFormatException](https://developer.android.com/reference/kotlin/android/os/ParcelFormatException#) |

The contents of a Parcel (usually during unmarshalling) does not contain the expected data.

## Summary

|                                                                                                                   Public constructors                                                                                                                    ||
|-------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------|---|
| [ParcelFormatException](https://developer.android.com/reference/kotlin/android/os/ParcelFormatException#ParcelFormatException())`()` <br />                                                                                                           |
| [ParcelFormatException](https://developer.android.com/reference/kotlin/android/os/ParcelFormatException#ParcelFormatException(kotlin.String))`(`reason:` `[String](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-string/index.html)!`)` <br /> |

## Public constructors

### ParcelFormatException

Added in[API level 1](https://developer.android.com/guide/topics/manifest/uses-sdk-element.html#ApiLevels)  

```
ParcelFormatException()
```  

### ParcelFormatException

Added in[API level 1](https://developer.android.com/guide/topics/manifest/uses-sdk-element.html#ApiLevels)  

```
ParcelFormatException(reason: String!)
```