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, bool>, Func<Exception, HttpExceptionDescriptor>)
Initializes a new instance of the HttpFaultResolver class.
public HttpFaultResolver(Func<Exception, bool> validator, Func<Exception, HttpExceptionDescriptor> descriptor)
Parameters
validatorFunc<Exception, bool>The function delegate that evaluates an Exception.
descriptorFunc<Exception, HttpExceptionDescriptor>The function delegate that provides details about an Exception.
Exceptions
- ArgumentNullException
validatorcannot be null -or-descriptorcannot be null.