public class InstantiationException extends ReflectiveOperationException
类中的newInstance方法创建类的实例时抛出,但指定的类对象不能被实例化。
实例化可能由于各种原因而失败,包括但不限于:
void Class.newInstance() ,
Serialized Form
| Constructor and Description |
|---|
InstantiationException()
构造一个没有详细消息的
InstantiationException 。
|
InstantiationException(String s)
构造具有
InstantiationException详细消息的InstantiationException。
|
addSuppressed, fillInStackTrace, getCause, getLocalizedMessage, getMessage, getStackTrace, getSuppressed, initCause, printStackTrace, printStackTrace, printStackTrace, setStackTrace, toStringpublic InstantiationException()
InstantiationException 。
public InstantiationException(String s)
InstantiationException详细消息的InstantiationException。
s - 详细信息。
Submit a bug or feature
For further API reference and developer documentation, see Java SE Documentation. That documentation contains more detailed, developer-targeted descriptions, with conceptual overviews, definitions of terms, workarounds, and working code examples.
Copyright © 1993, 2014, Oracle and/or its affiliates. All rights reserved.