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

  1. /*
  2.  * @(#)ClassNotFoundException.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 no definition for the class with the specifed name could be found. 
  36.  *
  37.  * @author  unascribed
  38.  * @version 1.3, 01/20/97
  39.  * @see     java.lang.Class#forName(java.lang.String)
  40.  * @see     java.lang.ClassLoader#findSystemClass(java.lang.String)
  41.  * @see     java.lang.ClassLoader#loadClass(java.lang.String, boolean)
  42.  * @since   JDK1.0
  43.  */
  44. public
  45. class ClassNotFoundException extends Exception {
  46.     /**
  47.      * Constructs a <code>ClassNotFoundException</code> with no detail message.
  48.      *
  49.      * @since   JDK1.0
  50.      */
  51.     public ClassNotFoundException() {
  52.     super();
  53.     }
  54.  
  55.     /**
  56.      * Constructs a <code>ClassNotFoundException</code> with the 
  57.      * specified detail message. 
  58.      *
  59.      * @param   s   the detail message.
  60.      * @since   JDK1.0
  61.      */
  62.     public ClassNotFoundException(String s) {
  63.     super(s);
  64.     }
  65. }
  66.