home *** CD-ROM | disk | FTP | other *** search
/ Chip 1998 November / Chip_1998-11_cd.bin / tema / Cafe / main.bin / IllegalAccessException.java < prev    next >
Text File  |  1997-05-20  |  3KB  |  75 lines

  1. /*
  2.  * @(#)IllegalAccessException.java    1.3 97/01/20
  3.  * 
  4.  * Copyright (c) 1995, 1996 Sun Microsystems, Inc. All Rights Reserved.
  5.  * 
  6.  * This software is the confidential and proprietary information of Sun
  7.  * Microsystems, Inc. ("Confidential Information").  You shall not
  8.  * disclose such Confidential Information and shall use it only in
  9.  * accordance with the terms of the license agreement you entered into
  10.  * with Sun.
  11.  * 
  12.  * SUN MAKES NO REPRESENTATIONS OR WARRANTIES ABOUT THE SUITABILITY OF THE
  13.  * SOFTWARE, EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE
  14.  * IMPLIED WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR
  15.  * PURPOSE, OR NON-INFRINGEMENT. SUN SHALL NOT BE LIABLE FOR ANY DAMAGES
  16.  * SUFFERED BY LICENSEE AS A RESULT OF USING, MODIFYING OR DISTRIBUTING
  17.  * THIS SOFTWARE OR ITS DERIVATIVES.
  18.  * 
  19.  * CopyrightVersion 1.1_beta
  20.  * 
  21.  */
  22.  
  23. package java.lang;
  24.  
  25. /**
  26.  * Thrown when an application tries to load in a class through its 
  27.  * string name using:
  28.  * <ul>
  29.  * <li>The <code>forName</code> method in class <code>Class</code>.
  30.  * <li>The <code>findSystemClass</code> method in class 
  31.  *     <code>ClassLoader</code>.
  32.  * <li>The <code>loadClass</code> method in class <code>ClassLoader</code>.
  33.  * </ul>
  34.  * <p>
  35.  * but the currently executing method does not have access to the 
  36.  * definition of the specified class, because the class is not public 
  37.  * and in another package. 
  38.  * <p>
  39.  * An instance of this class can also be thrown when an application 
  40.  * tries to create an instance of a class using the 
  41.  * <code>newInstance</code> method in class <code>Class</code>, but 
  42.  * the current method does not have access to the appropriate 
  43.  * zero-argument constructor. 
  44.  *
  45.  * @author  unascribed
  46.  * @version 1.3, 01/20/97
  47.  * @see     java.lang.Class#forName(java.lang.String)
  48.  * @see     java.lang.Class#newInstance()
  49.  * @see     java.lang.ClassLoader#findSystemClass(java.lang.String)
  50.  * @see     java.lang.ClassLoader#loadClass(java.lang.String, boolean)
  51.  * @since   JDK1.0
  52.  */
  53. public
  54. class IllegalAccessException extends Exception {
  55.     /**
  56.      * Constructs an <code>IllegalAccessException</code> without a 
  57.      * detail message. 
  58.      *
  59.      * @since   JDK1.0
  60.      */
  61.     public IllegalAccessException() {
  62.     super();
  63.     }
  64.  
  65.     /**
  66.      * Constructs an <code>IllegalAccessException</code> with a detail message. 
  67.      *
  68.      * @param   s   the detail message.
  69.      * @since   JDK1.0
  70.      */
  71.     public IllegalAccessException(String s) {
  72.     super(s);
  73.     }
  74. }
  75.