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: VRageAssembly: VRage.Library (in VRage.Library.dll) Version: 1.0.0.0
Syntax 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