Stay organized with collections
Save and categorize content based on your preferences.
open class ParcelFormatException : RuntimeException
The contents of a Parcel (usually during unmarshalling) does not contain the expected data.
Summary
Public constructors
ParcelFormatException(reason: String!)
Content and code samples on this page are subject to the licenses described in the Content License. Java and OpenJDK are trademarks or registered trademarks of Oracle and/or its affiliates.
Last updated 2025-02-10 UTC.
[null,null,["Last updated 2025-02-10 UTC."],[],[],null,["# ParcelFormatException\n\nAdded in [API level 1](https://developer.android.com/guide/topics/manifest/uses-sdk-element.html#ApiLevels)\n\nParcelFormatException\n=====================\n\n*** ** * ** ***\n\nKotlin \\|[Java](/reference/android/os/ParcelFormatException \"View this page in Java\") \n\n```\nopen class ParcelFormatException : RuntimeException\n```\n\n|---|---|---|---|---------------------------------------|\n| [kotlin.Any](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-any/index.html) |||||\n| ↳ | [kotlin.Throwable](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-throwable/index.html) ||||\n| | ↳ | [java.lang.Exception](../../java/lang/Exception.html#) |||\n| | | ↳ | [java.lang.RuntimeException](../../java/lang/RuntimeException.html#) ||\n| | | | ↳ | [android.os.ParcelFormatException](#) |\n\nThe contents of a Parcel (usually during unmarshalling) does not contain the expected data.\n\nSummary\n-------\n\n| Public constructors ||\n|------------------------------------------------------------------------------------------------------------------------------------------------------------------------|---|\n| [ParcelFormatException](#ParcelFormatException())`()` \u003cbr /\u003e |\n| [ParcelFormatException](#ParcelFormatException(kotlin.String))`(`reason:` `[String](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-string/index.html)!`)` \u003cbr /\u003e |\n\nPublic constructors\n-------------------\n\n### ParcelFormatException\n\nAdded in [API level 1](https://developer.android.com/guide/topics/manifest/uses-sdk-element.html#ApiLevels) \n\n```\nParcelFormatException()\n``` \n\n### ParcelFormatException\n\nAdded in [API level 1](https://developer.android.com/guide/topics/manifest/uses-sdk-element.html#ApiLevels) \n\n```\nParcelFormatException(reason: String!)\n```"]]