BulkItemBodyDeserializationException Class
Indicates that the body of a bulk item could not be deserialised into the expected type.
public sealed class BulkItemBodyDeserializationException : HAKOM.ErrorHandling.Core.Net.Api.HakomExceptionInheritance System.Object 🡒 System.Exception 🡒 HakomException 🡒 BulkItemBodyDeserializationException
Remarks
Section titled “Remarks”This exception is raised when the serialiser throws while attempting to parse the item’s
JSON body. This typically means the body’s JSON structure is fundamentally incompatible
with the expected type (for example, a JSON array was supplied where a JSON object is
required). Verify that each item’s body is valid JSON that conforms to the schema of the
TBody type parameter of the registered IBulkHandler<TBody,TResult>.
This exception is identified by error code HK01003.
Properties
Section titled “Properties”BulkItemBodyDeserializationException.EquivalentHttpStatusCode Property
Section titled “BulkItemBodyDeserializationException.EquivalentHttpStatusCode Property”If this error occurs while processing an HTTP bulk request, the individual item should be terminated with a status code 400 (Bad Request), as the error indicates that the client supplied a body whose JSON structure cannot be deserialised into the handler’s expected body type.
protected override System.Net.HttpStatusCode EquivalentHttpStatusCode { protected get; }