Stay organized with collections
Save and categorize content based on your preferences.
BadParcelableException
open class BadParcelableException : AndroidRuntimeException
Exception thrown when a Parcelable
is malformed or otherwise invalid.
This is typically encountered when a custom Parcelable
object is passed to another process that doesn't have the same Parcelable
class in its ClassLoader
.
Summary
Public constructors
BadParcelableException
BadParcelableException(cause: Exception!)
BadParcelableException
BadParcelableException(msg: 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,["# BadParcelableException\n\nAdded in [API level 1](https://developer.android.com/guide/topics/manifest/uses-sdk-element.html#ApiLevels)\n\nBadParcelableException\n======================\n\n*** ** * ** ***\n\nKotlin \\|[Java](/reference/android/os/BadParcelableException \"View this page in Java\") \n\n```\nopen class BadParcelableException : AndroidRuntimeException\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.util.AndroidRuntimeException](../util/AndroidRuntimeException.html#) ||\n| | | | | ↳ | [android.os.BadParcelableException](#) |\n\nException thrown when a [Parcelable](/reference/kotlin/android/os/Parcelable) is malformed or otherwise invalid.\n\nThis is typically encountered when a custom [Parcelable](/reference/kotlin/android/os/Parcelable) object is passed to another process that doesn't have the same [Parcelable](/reference/kotlin/android/os/Parcelable) class in its [ClassLoader](../../java/lang/ClassLoader.html#).\n\nSummary\n-------\n\n| Public constructors ||\n|-----------------------------------------------------------------------------------------------------------------------------------------------------------------------|---|\n| [BadParcelableException](#BadParcelableException(java.lang.Exception))`(`cause:` `[Exception](../../java/lang/Exception.html#)!`)` \u003cbr /\u003e |\n| [BadParcelableException](#BadParcelableException(kotlin.String))`(`msg:` `[String](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-string/index.html)!`)` \u003cbr /\u003e |\n\nPublic constructors\n-------------------\n\n### BadParcelableException\n\nAdded in [API level 1](https://developer.android.com/guide/topics/manifest/uses-sdk-element.html#ApiLevels) \n\n```\nBadParcelableException(cause: Exception!)\n``` \n\n### BadParcelableException\n\nAdded in [API level 1](https://developer.android.com/guide/topics/manifest/uses-sdk-element.html#ApiLevels) \n\n```\nBadParcelableException(msg: String!)\n```"]]