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.



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


public RuntimeException(String s)
Constructs a RuntimeException with the specified detail message.
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