java.lang
Class RuntimeException
java.lang.Object
|
+--java.lang.Throwable
|
+--java.lang.Exception
|
+--java.lang.RuntimeException
public class
RuntimeExceptionextends
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:- Brian Jones
- Warren Levy <warrenl@cygnus.com>
- Eric Blake <ebb9@email.byu.edu>
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:
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.