public class IllegalAccessException extends Exception
An instance of this class can also be thrown when an application
tries to create an instance of a class using the
newInstance
method in class Class
, but
the current method does not have access to the appropriate
zero-argument constructor.
Class.forName(java.lang.String)
,
Class.newInstance()
Constructor and Description |
---|
IllegalAccessException()
Constructs an
IllegalAccessException without a
detail message. |
IllegalAccessException(String s)
Constructs an
IllegalAccessException with a detail message. |
public IllegalAccessException()
IllegalAccessException
without a
detail message.public IllegalAccessException(String s)
IllegalAccessException
with a detail message.s
- the detail message.Copyright (c) 1990, 2012, Oracle and/or its affiliates. All rights reserved.