Package java.lang

Class InstantiationException

All Implemented Interfaces:
Serializable

public class InstantiationException
extends ReflectiveOperationException
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 Details

    • InstantiationException

      public InstantiationException()
      Constructs a new InstantiationException that includes the current stack trace.
    • InstantiationException

      public InstantiationException​(String detailMessage)
      Constructs a new InstantiationException with the current stack trace and the specified detail message.
      Parameters:
      detailMessage - the detail message for this exception.