Index (Frames) | Index (No Frames) | Package | Package Tree | Tree
java.lang

Class RuntimeException

java.lang.Object
|
+--java.lang.Throwable
   |
   +--java.lang.Exception
      |
      +--java.lang.RuntimeException


public class RuntimeException

extends Exception

All exceptions which are subclasses of RuntimeException can be thrown at any time during the execution of a Java virtual machine. Methods which throw these exceptions are not required to declare them in their throws clause.

Authors:

Constructor Summary

RuntimeException()

Create an exception without a message.
RuntimeException(java.lang.String s)

Create an exception with a message.
RuntimeException(java.lang.String s, java.lang.Throwable cause)

Create an exception with a message and a cause.
RuntimeException(java.lang.Throwable cause)

Create an exception with the given cause, and a message of cause == null ? null : cause.toString().

Constructor Details

RuntimeException

public RuntimeException()

Create an exception without a message. The cause remains uninitialized.

See Also:


RuntimeException

public RuntimeException(java.lang.String s)

Create an exception with a message. The cause remains uninitialized.

Parameters:

See Also:


RuntimeException

public RuntimeException(java.lang.String s, java.lang.Throwable cause)

Create an exception with a message and a cause.

Since:Parameters:


RuntimeException

public RuntimeException(java.lang.Throwable cause)

Create an exception with the given cause, and a message of cause == null ? null : cause.toString().

Since:Parameters: