BulkHandlerInvalidParameterException Class
Indicates that a bulk handler rejected one bulk item because one of its parameters has an invalid value.
public sealed class BulkHandlerInvalidParameterException : HAKOM.ErrorHandling.Core.Net.Api.HakomExceptionInheritance System.Object 🡒 System.Exception 🡒 HakomException 🡒 BulkHandlerInvalidParameterException
Remarks
Section titled “Remarks”Raised by a bulk handler for checks it makes itself before the item reaches a store, such as a route value that cannot be parsed, a query parameter the endpoint does not accept, or a missing parameter (its value is then empty). Only the affected item fails, the other items of the bulk are processed as usual. Correct the parameter of the item to avoid this error.
When the handler knows why the value is invalid, such as the reason an include token or an identifier can’t be
parsed, that reason is the inner exception and appears in the item’s problem details as root (or as
roots, one per reason, when there are several).
Bulk handlers create it with CreateInvalidParameter<T>(string, string, string, Exception).
This exception is identified by error code HK01014.
Properties
Section titled “Properties”BulkHandlerInvalidParameterException.EquivalentHttpStatusCode Property
Section titled “BulkHandlerInvalidParameterException.EquivalentHttpStatusCode Property”Terminates the affected item with status 400 (Bad Request) - the client supplied an invalid parameter value.
protected override System.Net.HttpStatusCode EquivalentHttpStatusCode { protected get; }