第二个 Android 11 开发者预览版现已推出,快来测试并分享您的反馈吧
added in version 22.1.0
belongs to Maven artifact com.android.support:support-fragment:28.0.0-alpha1

Fragment.InstantiationException

public static class Fragment.InstantiationException
extends RuntimeException

java.lang.Object
   ↳ java.lang.Throwable
     ↳ java.lang.Exception
       ↳ java.lang.RuntimeException
         ↳ android.support.v4.app.Fragment.InstantiationException


Thrown by instantiate(Context, String, Bundle) when there is an instantiation failure.

Summary

Public constructors

Fragment.InstantiationException(String msg, Exception cause)

Inherited methods

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

Public constructors

Fragment.InstantiationException

added in version 22.1.0
Fragment.InstantiationException (String msg, 
                Exception cause)

Parameters
msg String

cause Exception