Packages  This Package  Prev  Next  Index  

§1.42 Class RuntimeException

public  class  java.lang.RuntimeException
    extends  java.lang.Exception  (I-§1.30)
{
        // Constructors
    public RuntimeException();	§1.42.1
    public RuntimeException(String  s);	§1.42.2
}
RuntimeException is the superclass of those exceptions which can be thrown during the normal operation of the Java Virtual Machine.

A method is not required to declare in its throws clause any subclasses of RuntimeException that might be thrown during the execution of the method but not caught.


Constructors

RuntimeException

public RuntimeException()
Constructs a RuntimeException with no detail message.

RuntimeException

public RuntimeException(String s)
Constructs a RuntimeException with the specified detail message.
Parameters:
s - the detail message

Packages  This Package  Prev  Next  Index
Java API Document (HTML generated by dkramer on April 22, 1996)
Copyright © 1996 Sun Microsystems, Inc. All rights reserved
Please send any comments or corrections to doug.kramer@sun.com