Most visited

Recently visited

Added in API level 1

InstantiationException

public class InstantiationException
extends ReflectiveOperationException

java.lang.Object
   ↳ java.lang.Throwable
     ↳ java.lang.Exception
       ↳ java.lang.ReflectiveOperationException
         ↳ java.lang.InstantiationException


当应用程序试图创建使用一个类的实例抛出newInstance方法在类Class ,而指定的类对象不能被实例化。 实例化可能由于各种原因而失败,包括但不限于:

也可以看看:

Summary

Public constructors

InstantiationException()

构造一个没有详细信息的 InstantiationException

InstantiationException(String s)

用指定的详细信息构造一个 InstantiationException

Inherited methods

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

Public constructors

InstantiationException

Added in API level 1
InstantiationException ()

构造一个没有详细消息的 InstantiationException

InstantiationException

Added in API level 1
InstantiationException (String s)

用指定的详细信息构造一个 InstantiationException

Parameters
s String: the detail message.

Hooray!