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 © 2013, Oracle and/or its affiliates. All rights reserved.
Use is subject to License Terms. Your use of this web site or any of its contents or software indicates your agreement to be bound by these License Terms.