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