BulkHandlerResultCountMismatchException Class
Indicates that a bulk handler yielded fewer results than the number of items submitted to it.
public sealed class BulkHandlerResultCountMismatchException : HAKOM.ErrorHandling.Core.Net.Api.HakomExceptionInheritance System.Object 🡒 System.Exception 🡒 HakomException 🡒 BulkHandlerResultCountMismatchException
Remarks
Section titled “Remarks”Every IBulkHandler<TResult> and IBulkHandler<TBody,TResult> implementation must yield exactly one IBulkResponse<T> per input item. When a handler returns fewer results, the remaining items are assigned this exception, resulting in a per-item HTTP 500 response.
To avoid this error, ensure that the handler iterates over every input item and yields a result - success or failure - for each one before completing.
This exception is identified by error code HK01002.
Properties
Section titled “Properties”BulkHandlerResultCountMismatchException.EquivalentHttpStatusCode Property
Section titled “BulkHandlerResultCountMismatchException.EquivalentHttpStatusCode Property”This exception represents a contract violation by the handler implementation and is always reported as a server-side error (HTTP 500 Internal Server Error).
protected override System.Net.HttpStatusCode EquivalentHttpStatusCode { protected get; }