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

  1. /*
  2.  * @(#)Error.java    1.9 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.  * An <code>Error</code> is a subclass of <code>Throwable</code> 
  19.  * that indicates serious problems that a reasonable application 
  20.  * should not try to catch. Most such errors are abnormal conditions. 
  21.  * The <code>ThreadDeath</code> error, though a "normal" condition,
  22.  * is also a subclass of <code>Error</code> because most applications
  23.  * should not try to catch it. 
  24.  * <p>
  25.  * A method is not required to declare in its <code>throws</code> 
  26.  * clause any subclasses of <code>Error</code> that might be thrown 
  27.  * during the execution of the method but not caught, since these 
  28.  * errors are abnormal conditions that should never occur. 
  29.  *
  30.  * @author  Frank Yellin
  31.  * @version 1.9, 03/18/98
  32.  * @see     java.lang.ThreadDeath
  33.  * @since   JDK1.0
  34.  */
  35. public
  36. class Error extends Throwable {
  37.     /**
  38.      * Constructs an <code>Error</code> with no specified detail message.
  39.      */
  40.     public Error() {
  41.     super();
  42.     }
  43.  
  44.     /**
  45.      * Constructs an Error with the specified detail message. 
  46.      *
  47.      * @param   s   the detail message.
  48.      */
  49.     public Error(String s) {
  50.     super(s);
  51.     }
  52. }
  53.