Table of Contents

Class HttpFaultResolver

Namespace
Cuemon.AspNetCore.Diagnostics
Assembly
Cuemon.AspNetCore.dll

Provides a way to evaluate an exception and provide details about it in a developer friendly way, optimized for open- and otherwise public application programming interfaces (API).

public class HttpFaultResolver : FaultHandler<HttpExceptionDescriptor>
Inheritance
HttpFaultResolver
Inherited Members

Constructors

HttpFaultResolver(Func<Exception, Boolean>, Func<Exception, HttpExceptionDescriptor>)

Initializes a new instance of the HttpFaultResolver class.

public HttpFaultResolver(Func<Exception, bool> validator, Func<Exception, HttpExceptionDescriptor> descriptor)

Parameters

validator Func<Exception, Boolean>

The function delegate that evaluates an Exception.

descriptor Func<Exception, HttpExceptionDescriptor>

The function delegate that provides details about an Exception.

Exceptions

ArgumentNullException

validator cannot be null -or- descriptor cannot be null.