HttpFaultResolver Constructor
Definition
- Namespace
- Cuemon.AspNetCore.Diagnostics
- Assemblies
- Cuemon.AspNetCore.dll
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.