Table of Contents

AddFaultDescriptor Method

Definition

AddFaultDescriptor(FilterCollection)

Adds a FaultDescriptorFilter to the filters handled in the MVC request pipeline that, after an action has faulted, provides developer friendly information about an Exception along with a correct HttpStatusCode.

public static IFilterMetadata AddFaultDescriptor(this FilterCollection filters)

Parameters

filters FilterCollection

The FilterCollection to extend.

Returns

IFilterMetadata

A IFilterMetadata representing the added type.