Class FaultDescriptorFilter
- 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
-
IExceptionFilterIFilterMetadata
- 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
ExceptionContextThe Microsoft.AspNetCore.Mvc.Filters.ExceptionContext.