Class FaultResolver
- Namespace
- Cuemon.Diagnostics
- Assembly
- Cuemon.Diagnostics.dll
Provides a way to evaluate an exception and provide details about it in a developer friendly way.
public class FaultResolver : FaultHandler<ExceptionDescriptor>
- Inheritance
-
FaultResolver
- Inherited Members
Constructors
FaultResolver(Func<Exception, bool>, Func<Exception, ExceptionDescriptor>)
Initializes a new instance of the FaultResolver class.
public FaultResolver(Func<Exception, bool> validator, Func<Exception, ExceptionDescriptor> descriptor)
Parameters
validatorFunc<Exception, bool>The function delegate that evaluates an Exception.
descriptorFunc<Exception, ExceptionDescriptor>The function delegate that provides details about an Exception.
Exceptions
- ArgumentNullException
validatorcannot be null -or-descriptorcannot be null.