public class RuntimeException extends Exception
Constructor and Description |
---|
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.
|
addSuppressed, fillInStackTrace, getCause, getLocalizedMessage, getMessage, initCause, printStackTrace, printStackTrace, toString
public RuntimeException()
null
as its
detail message. The cause is not initialized.public RuntimeException(String message)
message
- the detail message. The detail message is saved for
later retrieval by the getMessage() method.public RuntimeException(String message, Throwable cause)
message
- the detail message. The detail message is saved for
later retrieval by the getMessage() method.cause
- the cause of the exception.public RuntimeException(Throwable cause)
cause
- the cause of the exception.