Package java.lang Previous
Previous
Java API
Java API
Index
Index
Next
Next

Class RuntimeException

Constructors

public  class  java.lang.RuntimeException
    extends  java.lang.Exception  
{
        // Constructors
    public RuntimeException();	
    public RuntimeException(String  s);	
}

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.

ParameterDescription
s the detail message



© 1996 Sun Microsystems, Inc. All rights reserved.