Table of Contents

HttpExceptionDescriptorResponseHandler Constructor

Definition

HttpExceptionDescriptorResponseHandler(MediaTypeHeaderValue, Func<HttpExceptionDescriptor, HttpResponseMessage>)

Initializes a new instance of the HttpExceptionDescriptorResponseHandler class.

public HttpExceptionDescriptorResponseHandler(MediaTypeHeaderValue contentType, Func<HttpExceptionDescriptor, HttpResponseMessage> responseMessageFactory)

Parameters

contentType MediaTypeHeaderValue

The media type that this handler supports.

responseMessageFactory Func<HttpExceptionDescriptor, HttpResponseMessage>

The function delegate that produces the HttpResponseMessage.

Exceptions

ArgumentNullException

contentType cannot be null -or- responseMessageFactory cannot be null.