Click or drag to resize
ExceptionsThrowIfTException Method (Boolean, String, String)

[This is preliminary documentation and is subject to change.]

Specifies a condition and throws an exception with the provided message if the condition is true.

Namespace: VRage
Assembly: VRage.Library (in VRage.Library.dll) Version: 1.0.0.0
Syntax
C#
public static void ThrowIf<TException>(
	bool condition,
	string arg1,
	string arg2
)
where TException : Exception

Parameters

condition
Type: SystemBoolean
The conditional expression to test.
arg1
Type: SystemString
The arg1.
arg2
Type: SystemString
The arg2.

Type Parameters

TException
The exception to throw if the condition is true.
See Also