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

[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,
	params Object[] args
)
where TException : Exception

Parameters

condition
Type: SystemBoolean
The conditional expression to test.
args
Type: SystemObject
Exception arguments.

Type Parameters

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