Most visited

Recently visited

Added in API level 1

BadParcelableException

public class BadParcelableException
extends AndroidRuntimeException

java.lang.Object
   ↳ java.lang.Throwable
     ↳ java.lang.Exception
       ↳ java.lang.RuntimeException
         ↳ android.util.AndroidRuntimeException
           ↳ android.os.BadParcelableException


Parcelable格式错误或无效时抛出异常。

当一个自定义这通常会遇到 Parcelable对象传递给另一个过程,它不具有相同的 Parcelable同级车 ClassLoader

Summary

Public constructors

BadParcelableException(String msg)
BadParcelableException(异常 cause)

Inherited methods

From class java.lang.Throwable
From class java.lang.Object

Public constructors

BadParcelableException

Added in API level 1
BadParcelableException (String msg)

Parameters
msg String

BadParcelableException

Added in API level 1
BadParcelableException (异常 cause)

Parameters
cause 异常

Hooray!