Serializablepublic class InstantiationException extends ReflectiveOperationException
newInstance method in class
Class, but the specified class object cannot be
instantiated. The instantiation can fail for a variety of
reasons including but not limited to:
void
Class.newInstance(),
序列化表格| 构造器 | 说明 |
|---|---|
InstantiationException() |
Constructs an
InstantiationException with no detail message. |
InstantiationException(String s) |
Constructs an
InstantiationException with the
specified detail message. |
public InstantiationException()
InstantiationException with no detail message.public InstantiationException(String s)
InstantiationException with the
specified detail message.s - the detail message.