java.lang
Class RuntimeException

java.lang.Object
  |
  +--java.lang.Throwable
        |
        +--java.lang.Exception
              |
              +--java.lang.RuntimeException
Direct Known Subclasses:
ArithmeticException, ArrayStoreException, ClassCastException, EmptyStackException, IllegalArgumentException, IllegalMonitorStateException, IndexOutOfBoundsException, NegativeArraySizeException, NoSuchElementException, NullPointerException, SecurityException

public class RuntimeException
extends Exception

An exception that can reasonably occur during the execution of a Java program by the Virtual machine.


Constructor Summary
RuntimeException()
          Constructs a RuntimeException with no detail message.
RuntimeException(String s)
          Constructs a RuntimeException with the specified detail message.
 
Methods inherited from class java.lang.Throwable
fillInStackTrace, getMessage, printStackTrace, printStackTrace, toString
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

RuntimeException

public RuntimeException()
Constructs a RuntimeException with no detail message. A detail message is a String that describes this particular exception.


RuntimeException

public RuntimeException(String s)
Constructs a RuntimeException with the specified detail message. A detail message is a String that describes this particular exception.

Parameters:
s - the detail message