jaroslav@68: /*
jaroslav@68: * Copyright (c) 1995, 2008, Oracle and/or its affiliates. All rights reserved.
jaroslav@68: * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
jaroslav@68: *
jaroslav@68: * This code is free software; you can redistribute it and/or modify it
jaroslav@68: * under the terms of the GNU General Public License version 2 only, as
jaroslav@68: * published by the Free Software Foundation. Oracle designates this
jaroslav@68: * particular file as subject to the "Classpath" exception as provided
jaroslav@68: * by Oracle in the LICENSE file that accompanied this code.
jaroslav@68: *
jaroslav@68: * This code is distributed in the hope that it will be useful, but WITHOUT
jaroslav@68: * ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or
jaroslav@68: * FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License
jaroslav@68: * version 2 for more details (a copy is included in the LICENSE file that
jaroslav@68: * accompanied this code).
jaroslav@68: *
jaroslav@68: * You should have received a copy of the GNU General Public License version
jaroslav@68: * 2 along with this work; if not, write to the Free Software Foundation,
jaroslav@68: * Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA.
jaroslav@68: *
jaroslav@68: * Please contact Oracle, 500 Oracle Parkway, Redwood Shores, CA 94065 USA
jaroslav@68: * or visit www.oracle.com if you need additional information or have any
jaroslav@68: * questions.
jaroslav@68: */
jaroslav@68:
jaroslav@68: package java.lang;
jaroslav@68:
jaroslav@68: /**
jaroslav@68: * An IllegalAccessException is thrown when an application tries
jaroslav@68: * to reflectively create an instance (other than an array),
jaroslav@68: * set or get a field, or invoke a method, but the currently
jaroslav@68: * executing method does not have access to the definition of
jaroslav@68: * the specified class, field, method or constructor.
jaroslav@68: *
jaroslav@68: * @author unascribed
jaroslav@68: * @see Class#newInstance()
jaroslav@68: * @see java.lang.reflect.Field#set(Object, Object)
jaroslav@68: * @see java.lang.reflect.Field#setBoolean(Object, boolean)
jaroslav@68: * @see java.lang.reflect.Field#setByte(Object, byte)
jaroslav@68: * @see java.lang.reflect.Field#setShort(Object, short)
jaroslav@68: * @see java.lang.reflect.Field#setChar(Object, char)
jaroslav@68: * @see java.lang.reflect.Field#setInt(Object, int)
jaroslav@68: * @see java.lang.reflect.Field#setLong(Object, long)
jaroslav@68: * @see java.lang.reflect.Field#setFloat(Object, float)
jaroslav@68: * @see java.lang.reflect.Field#setDouble(Object, double)
jaroslav@68: * @see java.lang.reflect.Field#get(Object)
jaroslav@68: * @see java.lang.reflect.Field#getBoolean(Object)
jaroslav@68: * @see java.lang.reflect.Field#getByte(Object)
jaroslav@68: * @see java.lang.reflect.Field#getShort(Object)
jaroslav@68: * @see java.lang.reflect.Field#getChar(Object)
jaroslav@68: * @see java.lang.reflect.Field#getInt(Object)
jaroslav@68: * @see java.lang.reflect.Field#getLong(Object)
jaroslav@68: * @see java.lang.reflect.Field#getFloat(Object)
jaroslav@68: * @see java.lang.reflect.Field#getDouble(Object)
jaroslav@68: * @see java.lang.reflect.Method#invoke(Object, Object[])
jaroslav@68: * @see java.lang.reflect.Constructor#newInstance(Object[])
jaroslav@68: * @since JDK1.0
jaroslav@68: */
jaroslav@68: public class IllegalAccessException extends ReflectiveOperationException {
jaroslav@68: private static final long serialVersionUID = 6616958222490762034L;
jaroslav@68:
jaroslav@68: /**
jaroslav@68: * Constructs an IllegalAccessException
without a
jaroslav@68: * detail message.
jaroslav@68: */
jaroslav@68: public IllegalAccessException() {
jaroslav@68: super();
jaroslav@68: }
jaroslav@68:
jaroslav@68: /**
jaroslav@68: * Constructs an IllegalAccessException
with a detail message.
jaroslav@68: *
jaroslav@68: * @param s the detail message.
jaroslav@68: */
jaroslav@68: public IllegalAccessException(String s) {
jaroslav@68: super(s);
jaroslav@68: }
jaroslav@68: }