java.lang
Class InstantiationException

java.lang.Object
java.lang.Throwable
java.lang.Exception
java.lang.InstantiationException
- All Implemented Interfaces:
- java.io.Serializable
- public class InstantiationException
- extends Exception
Thrown when an attempt is made to use reflection to build a
non-instantiable class (an interface or abstract class).
| Nested classes inherited from class java.lang.Throwable |
|
| Fields inherited from class java.lang.Throwable |
|
| Methods inherited from class java.lang.Throwable |
fillInStackTrace, getCause, getLocalizedMessage, getMessage, getStackTrace, initCause, printStackTrace, printStackTrace, printStackTrace, setStackTrace, toString |
serialVersionUID
private static final long serialVersionUID
- Compatible with JDK 1.0+.
- See Also:
- Constant Field Values
InstantiationException
public InstantiationException()
- Create an exception without a message.
InstantiationException
public InstantiationException(String s)
- Create an exception with a message.