Package java.lang

Class IllegalAccessException

All Implemented Interfaces:
Serializable

public class IllegalAccessException
extends ReflectiveOperationException
Thrown when a program attempts to access a field or method which is not accessible from the location where the reference is made.
See Also:
Serialized Form
  • Constructor Details

    • IllegalAccessException

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

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