Class FaultDescriptorFilter
A filter that, after an action has faulted, provides developer friendly information about an System.Exception along with a correct System.Net.HttpStatusCode. Implements the Microsoft.AspNetCore.Mvc.Filters.IExceptionFilter
Implements
Microsoft.AspNetCore.Mvc.Filters.IExceptionFilter
Microsoft.AspNetCore.Mvc.Filters.IFilterMetadata
Inherited Members
Namespace: Cuemon.AspNetCore.Mvc.Filters.Diagnostics
Assembly: Cuemon.AspNetCore.Mvc.dll
Syntax
public class FaultDescriptorFilter : Configurable<FaultDescriptorOptions>, IConfigurable<FaultDescriptorOptions>, IExceptionFilter, IFilterMetadata
Constructors
| Improve this DocFaultDescriptorFilter(IOptions<FaultDescriptorOptions>)
Initializes a new instance of the FaultDescriptorFilter class.
Declaration
public FaultDescriptorFilter(IOptions<FaultDescriptorOptions> setup)
Parameters
Type | Name | Description |
---|---|---|
Microsoft.Extensions.Options.IOptions<FaultDescriptorOptions> | setup | The FaultDescriptorOptions which need to be configured. |
Methods
| Improve this DocOnException(ExceptionContext)
Called after an action has thrown an System.Exception.
Declaration
public virtual void OnException(ExceptionContext context)
Parameters
Type | Name | Description |
---|---|---|
Microsoft.AspNetCore.Mvc.Filters.ExceptionContext | context | The Microsoft.AspNetCore.Mvc.Filters.ExceptionContext. |
Implements
Microsoft.AspNetCore.Mvc.Filters.IExceptionFilter
Microsoft.AspNetCore.Mvc.Filters.IFilterMetadata
Extension Methods
See Also
Microsoft.AspNetCore.Mvc.Filters.IExceptionFilter