home *** CD-ROM | disk | FTP | other *** search
/ Java 1.2 How-To / JavaHowTo.iso / 3rdParty / jbuilder / unsupported / JDK1.2beta3 / SOURCE / SRC.ZIP / java / lang / IllegalAccessException.java < prev    next >
Encoding:
Java Source  |  1998-03-20  |  2.0 KB  |  64 lines

  1. /*
  2.  * @(#)IllegalAccessException.java    1.5 98/03/18
  3.  *
  4.  * Copyright 1995-1997 by Sun Microsystems, Inc.,
  5.  * 901 San Antonio Road, Palo Alto, California, 94303, U.S.A.
  6.  * All rights reserved.
  7.  *
  8.  * This software is the confidential and proprietary information
  9.  * of Sun Microsystems, Inc. ("Confidential Information").  You
  10.  * shall not disclose such Confidential Information and shall use
  11.  * it only in accordance with the terms of the license agreement
  12.  * you entered into with Sun.
  13.  */
  14.  
  15. package java.lang;
  16.  
  17. /**
  18.  * Thrown when an application tries to load in a class through its 
  19.  * string name using:
  20.  * <ul>
  21.  * <li>The <code>forName</code> method in class <code>Class</code>.
  22.  * <li>The <code>findSystemClass</code> method in class 
  23.  *     <code>ClassLoader</code>.
  24.  * <li>The <code>loadClass</code> method in class <code>ClassLoader</code>.
  25.  * </ul>
  26.  * <p>
  27.  * but the currently executing method does not have access to the 
  28.  * definition of the specified class, because the class is not public 
  29.  * and in another package. 
  30.  * <p>
  31.  * An instance of this class can also be thrown when an application 
  32.  * tries to create an instance of a class using the 
  33.  * <code>newInstance</code> method in class <code>Class</code>, but 
  34.  * the current method does not have access to the appropriate 
  35.  * zero-argument constructor. 
  36.  *
  37.  * @author  unascribed
  38.  * @version 1.5, 03/18/98
  39.  * @see     java.lang.Class#forName(java.lang.String)
  40.  * @see     java.lang.Class#newInstance()
  41.  * @see     java.lang.ClassLoader#findSystemClass(java.lang.String)
  42.  * @see     java.lang.ClassLoader#loadClass(java.lang.String, boolean)
  43.  * @since   JDK1.0
  44.  */
  45. public
  46. class IllegalAccessException extends Exception {
  47.     /**
  48.      * Constructs an <code>IllegalAccessException</code> without a 
  49.      * detail message. 
  50.      */
  51.     public IllegalAccessException() {
  52.     super();
  53.     }
  54.  
  55.     /**
  56.      * Constructs an <code>IllegalAccessException</code> with a detail message. 
  57.      *
  58.      * @param   s   the detail message.
  59.      */
  60.     public IllegalAccessException(String s) {
  61.     super(s);
  62.     }
  63. }
  64.