1 /* 2 * @(#)IllegalAccessError.java 1.16 03/12/19 3 * 4 * Copyright 2004 Sun Microsystems, Inc. All rights reserved. 5 * SUN PROPRIETARY/CONFIDENTIAL. Use is subject to license terms. 6 */ 7 8 package java.lang; 9 10 /** 11 * Thrown if an application attempts to access or modify a field, or 12 * to call a method that it does not have access to. 13 * <p> 14 * Normally, this error is caught by the compiler; this error can 15 * only occur at run time if the definition of a class has 16 * incompatibly changed. 17 * 18 * @author unascribed 19 * @version 1.16, 12/19/03 20 * @since JDK1.0 21 */ 22 public class IllegalAccessError extends IncompatibleClassChangeError { 23 /** 24 * Constructs an <code>IllegalAccessError</code> with no detail message. 25 */ 26 public IllegalAccessError() { 27 super(); 28 } 29 30 /** 31 * Constructs an <code>IllegalAccessError</code> with the specified 32 * detail message. 33 * 34 * @param s the detail message. 35 */ 36 public IllegalAccessError(String s) { 37 super(s); 38 } 39 } 40