|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object java.lang.Throwable java.lang.Exception java.lang.RuntimeException
public class RuntimeException
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.
Constructor Summary | |
---|---|
RuntimeException()
Create an exception without a message. |
|
RuntimeException(String s)
Create an exception with a message. |
|
RuntimeException(String s,
Throwable cause)
Create an exception with a message and a cause. |
|
RuntimeException(Throwable cause)
Create an exception with the given cause, and a message of cause == null ? null : cause.toString() . |
Method Summary |
---|
Methods inherited from class java.lang.Throwable |
---|
getCause, getLocalizedMessage, getMessage, initCause, printStackTrace, printStackTrace, printStackTrace, toString |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Constructor Detail |
---|
public RuntimeException()
Throwable.initCause(Throwable)
public RuntimeException(String s)
s
- the message stringThrowable.initCause(Throwable)
public RuntimeException(String s, Throwable cause)
s
- the message stringcause
- the cause of this exceptionpublic RuntimeException(Throwable cause)
cause == null ? null : cause.toString()
.
cause
- the cause of this exception
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |