java.lang
Class RuntimeException
java.lang.Object
java.lang.Throwable
java.lang.Exception
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
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.