Method ThrowOnFailure
- Namespace
- Skyline.DataMiner.Utils.DOM.Extensions
- Assembly
- Skyline.DataMiner.Utils.DOM.dll
ThrowOnFailure<T>(IBulkOperationResult<T>)
This extension method inspects the result of a bulk operation and throws a BulkCrudFailedException<T> if any failures are detected in the operation.
public static void ThrowOnFailure<T>(this IBulkOperationResult<T> result) where T : IEquatable<T>
Parameters
result
IBulkOperationResult<T>The result of the bulk operation that is being inspected for failures.
Type Parameters
T
The type of the items involved in the bulk operation.
Exceptions
- BulkCrudFailedException<T>
Thrown when the bulk operation result contains one or more failures.