java.lang
Class RuntimeException

java.lang.Object
  extended by java.lang.Throwable
      extended by java.lang.Exception
          extended by java.lang.RuntimeException
Direct Known Subclasses:
ArrayStoreException, ClassCastException, ConcurrentModificationException, EmptyQueueException, EmptyStackException, IllegalArgumentException, IllegalMonitorStateException, IllegalStateException, IndexOutOfBoundsException, NoSuchElementException, NullPointerException, UnsupportedOperationException

public class RuntimeException
extends Exception


Constructor Summary
RuntimeException()
          Constructs a new runtime exception with null as its detail message.
RuntimeException(String message)
          Constructs a new runtime exception with the specified detail message.
 
Method Summary
 
Methods inherited from class java.lang.Throwable
getMessage, 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 new runtime exception with null as its detail message. The cause is not initialized.


RuntimeException

public RuntimeException(String message)
Constructs a new runtime exception with the specified detail message. The cause is not initialized.

Parameters:
message - the detail message. The detail message is saved for later retrieval by the getMessage() method.