public 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
Constructor and Description |
---|
InstantiationException()
Constructs an
InstantiationException with no detail message. |
InstantiationException(String s)
Constructs an
InstantiationException with the specified detail message. |
addSuppressed, fillInStackTrace, getCause, getLocalizedMessage, getMessage, getStackTrace, getSuppressed, initCause, printStackTrace, printStackTrace, toString
public InstantiationException()
InstantiationException
with no detail message.public InstantiationException(String s)
InstantiationException
with the specified detail message.s
- the detail message.