- java.lang.Object
-
- java.lang.Throwable
-
- java.lang.Exception
-
- java.lang.ReflectiveOperationException
-
- java.lang.InstantiationException
-
- All Implemented Interfaces:
Serializable
public class InstantiationException extends ReflectiveOperationException
This exception is thrown when a program attempts to access a constructor which is not accessible from the location where the reference is made.- See Also:
- Serialized Form
-
-
Constructor Summary
Constructors Constructor Description InstantiationException()
Constructs a new instance of this class with its walkback filled in.InstantiationException(String detailMessage)
Constructs a new instance of this class with its walkback and message filled in.
-
Method Summary
-
Methods declared in class java.lang.Throwable
addSuppressed, fillInStackTrace, getCause, getLocalizedMessage, getMessage, getStackTrace, getSuppressed, initCause, printStackTrace, printStackTrace, printStackTrace, setStackTrace, toString
-
-
-
-
Constructor Detail
-
InstantiationException
public InstantiationException()
Constructs a new instance of this class with its walkback filled in.
-
InstantiationException
public InstantiationException(String detailMessage)
Constructs a new instance of this class with its walkback and message filled in.- Parameters:
detailMessage
- String The detail message for the exception.
-
-