Table of Contents

Class FaultDescriptorFilter

Namespace
Cuemon.AspNetCore.Mvc.Filters.Diagnostics
Assembly
Cuemon.AspNetCore.Mvc.dll

A filter that, after an action has faulted, provides developer friendly information about an Exception along with a correct HttpStatusCode.

public class FaultDescriptorFilter : Configurable<MvcFaultDescriptorOptions>, IConfigurable<MvcFaultDescriptorOptions>, IExceptionFilter, IFilterMetadata
Inheritance
FaultDescriptorFilter
Implements
IExceptionFilter
IFilterMetadata
Inherited Members

Constructors

FaultDescriptorFilter(IOptions<MvcFaultDescriptorOptions>)

Initializes a new instance of the FaultDescriptorFilter class.

public FaultDescriptorFilter(IOptions<MvcFaultDescriptorOptions> setup)

Parameters

setup IOptions<MvcFaultDescriptorOptions>

The MvcFaultDescriptorOptions which need to be configured.

Methods

OnException(ExceptionContext)

Called after an action has thrown an Exception.

public virtual void OnException(ExceptionContext context)

Parameters

context ExceptionContext

The Microsoft.AspNetCore.Mvc.Filters.ExceptionContext.

See Also