HttpExceptionDescriptorResponseFormatter Constructor
Definition
- Namespace
- Cuemon.AspNetCore.Diagnostics
- Assemblies
- Cuemon.AspNetCore.dll
HttpExceptionDescriptorResponseFormatter(Action<TOptions>)
Initializes a new instance of the HttpExceptionDescriptorResponseFormatter<TOptions> class.
public HttpExceptionDescriptorResponseFormatter(Action<TOptions> setup)
Parameters
Exceptions
- ArgumentException
setupcould 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
optionsIOptions<TOptions>The IOptions<TOptions> which need to be configured.
Exceptions
- ArgumentNullException
optionscannot be null.- ArgumentException
optionsare not in a valid state.
HttpExceptionDescriptorResponseFormatter(TOptions)
Initializes a new instance of the HttpExceptionDescriptorResponseFormatter<TOptions> class.
public HttpExceptionDescriptorResponseFormatter(TOptions options)
Parameters
optionsTOptionsThe configured options of this instance.
Exceptions
- ArgumentNullException
optionscannot be null.- ArgumentException
optionsare not in a valid state.