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, NegativeArraySizeException, 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.
RuntimeException(String message, Throwable cause)
          Constructs a new runtime exception with the specified detail message and cause.
RuntimeException(Throwable cause)
          Constructs a new runtime exception with the specified cause.
 
Method Summary
 
Methods inherited from class java.lang.Throwable
addSuppressed, fillInStackTrace, getCause, getLocalizedMessage, getMessage, initCause, 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 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.

RuntimeException

public RuntimeException(String message,
                        Throwable cause)
Constructs a new runtime exception with the specified detail message and cause.

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

RuntimeException

public RuntimeException(Throwable cause)
Constructs a new runtime exception with the specified cause.

Parameters:
cause - the cause of the exception.