java.lang
Class InstantiationException

java.lang.Object
  extended by java.lang.Throwable
      extended by java.lang.Exception
          extended by java.lang.InstantiationException

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).

See Also:
Class.newInstance()

Constructor Summary
InstantiationException()
          Create an exception without a message.
InstantiationException(String s)
          Create an exception with a message.
 
Method Summary
 
Methods inherited from class java.lang.Throwable
getCause, getLocalizedMessage, getMessage, initCause, printStackTrace, printStackTrace, printStackTrace, toString
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

InstantiationException

public InstantiationException()
Create an exception without a message.


InstantiationException

public InstantiationException(String s)
Create an exception with a message.

Parameters:
s - the message