Constructor RuntimeException
RuntimeException()
Initialises a new RuntimeException instance with the default error
message.
Declaration
public RuntimeException()
RuntimeException(String)
Initialises a new RuntimeException instance with a specified error
message.
Declaration
public RuntimeException(string message)
Parameters
Type | Name | Description |
---|---|---|
String | message | The error message that explains the reason for the exception. |
RuntimeException(String, Exception)
Initialises a new RuntimeException instance with a specified error
message and a reference to the inner exception that is the cause of this exception.
Declaration
public RuntimeException(string message, Exception innerException)
Parameters
Type | Name | Description |
---|---|---|
String | message | The error message that explains the reason for the exception. |
Exception | innerException |
The exception that is the cause of the current exception. If the innerException
parameter is not a null reference, then the current exception was raised in a catch block
that handles the inner exception.
|