Package java.lang
Class IllegalAccessException
java.lang.Object
java.lang.Throwable
java.lang.Exception
java.lang.ReflectiveOperationException
java.lang.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 Summary
Constructors Constructor Description IllegalAccessException()Constructs a newIllegalAccessExceptionthat includes the current stack trace.IllegalAccessException(String detailMessage)Constructs a newIllegalAccessExceptionwith the current stack trace and the specified detail message. -
Method Summary
Methods inherited from class java.lang.Throwable
addSuppressed, fillInStackTrace, getCause, getLocalizedMessage, getMessage, getStackTrace, getSuppressed, initCause, printStackTrace, printStackTrace, printStackTrace, setStackTrace, toString
-
Constructor Details
-
IllegalAccessException
public IllegalAccessException()Constructs a newIllegalAccessExceptionthat includes the current stack trace. -
IllegalAccessException
Constructs a newIllegalAccessExceptionwith the current stack trace and the specified detail message.- Parameters:
detailMessage- the detail message for this exception.
-