편집

다음을 통해 공유


RuntimeException Constructors

Definition

Overloads

RuntimeException(String, Object[])

Initializes a new RuntimeException with the specified error message, optionally specifying any format arguments to format the error message.

RuntimeException(Int32, String, Object[])

Initializes a new RuntimeException with the specified error code, error message, and optionally specifying any format arguments to format the error message.

RuntimeException(Int32, Boolean, String, Object[])

Initializes a new RuntimeException with the specified error code, error message, and optionally specifying any format arguments to format the error message.

RuntimeException(Int32, Boolean, Exception, String, Object[])

Initializes a new RuntimeException with the specified error code, inner exception, error message, and optionally specifying any format arguments to format the error message.

RuntimeException(String, Object[])

Initializes a new RuntimeException with the specified error message, optionally specifying any format arguments to format the error message.

public RuntimeException (string message, params object[] args);
new ObjCRuntime.RuntimeException : string * obj[] -> ObjCRuntime.RuntimeException

Parameters

message
String

The error message that explains the reason for the exception.

args
Object[]

An object array that contains zero or more objects to format the error message.

Applies to

RuntimeException(Int32, String, Object[])

Initializes a new RuntimeException with the specified error code, error message, and optionally specifying any format arguments to format the error message.

public RuntimeException (int code, string message, params object[] args);
new ObjCRuntime.RuntimeException : int * string * obj[] -> ObjCRuntime.RuntimeException

Parameters

code
Int32

The error code for the condition that triggered the exception.

message
String

The error message that explains the reason for the exception.

args
Object[]

An object array that contains zero or more objects to format the error message.

Applies to

RuntimeException(Int32, Boolean, String, Object[])

Initializes a new RuntimeException with the specified error code, error message, and optionally specifying any format arguments to format the error message.

public RuntimeException (int code, bool error, string message, params object[] args);
new ObjCRuntime.RuntimeException : int * bool * string * obj[] -> ObjCRuntime.RuntimeException

Parameters

code
Int32

The error code for the condition that triggered the exception.

error
Boolean

If this is an error or a warning.

message
String

The error message that explains the reason for the exception.

args
Object[]

An object array that contains zero or more objects to format the error message.

Applies to

RuntimeException(Int32, Boolean, Exception, String, Object[])

Initializes a new RuntimeException with the specified error code, inner exception, error message, and optionally specifying any format arguments to format the error message.

public RuntimeException (int code, bool error, Exception innerException, string message, params object[] args);
new ObjCRuntime.RuntimeException : int * bool * Exception * string * obj[] -> ObjCRuntime.RuntimeException

Parameters

code
Int32

The error code for the condition that triggered the exception.

error
Boolean

If this is an error or a warning.

innerException
Exception

The exception that is the cause of the current exception.

message
String

The error message that explains the reason for the exception.

args
Object[]

An object array that contains zero or more objects to format the error message.

Applies to