Table of Contents

HttpExceptionDescriptorResponseFormatter Constructor

Definition

HttpExceptionDescriptorResponseFormatter(Action<TOptions>)

Initializes a new instance of the HttpExceptionDescriptorResponseFormatter<TOptions> class.

public HttpExceptionDescriptorResponseFormatter(Action<TOptions> setup)

Parameters

setup Action<TOptions>

The Action<T> which need to be configured.

Exceptions

ArgumentException

setup could not be configured to a valid state.

HttpExceptionDescriptorResponseFormatter(IOptions<TOptions>)

Initializes a new instance of the HttpExceptionDescriptorResponseFormatter<TOptions> class.

public HttpExceptionDescriptorResponseFormatter(IOptions<TOptions> options)

Parameters

options IOptions<TOptions>

The IOptions<TOptions> which need to be configured.

Exceptions

ArgumentNullException

options cannot be null.

ArgumentException

options are not in a valid state.

HttpExceptionDescriptorResponseFormatter(TOptions)

Initializes a new instance of the HttpExceptionDescriptorResponseFormatter<TOptions> class.

public HttpExceptionDescriptorResponseFormatter(TOptions options)

Parameters

options TOptions

The configured options of this instance.

Exceptions

ArgumentNullException

options cannot be null.

ArgumentException

options are not in a valid state.